-
hey @alexhultman, https://medium.com/@kyberneees/building-ultra-fast-rest-apis-with-node-js-and-restana-1d65b0d524b7 looks to be about 2x faster than Node native. (and can do clustering for another 20%). |
Beta Was this translation helpful? Give feedback.
Replies: 12 comments
-
No need to benchmark, I already know it's not close. |
Beta Was this translation helpful? Give feedback.
-
It's not even ballpark turbo-http without SSL (I don't even think they have SSL):
uws:
uws with SSL:
|
Beta Was this translation helpful? Give feedback.
-
i wasn't suggesting it would be close to uWSjs (i know what 2x means). was just curious how it stacked up to native node http in your testing. cool to see it roughly on par with Crystal. thanks! |
Beta Was this translation helpful? Give feedback.
-
You mean turbo-http? Uws is not comparable with Crystal. Where do you publish these results? |
Beta Was this translation helpful? Give feedback.
-
https://github.com/uNetworking/uWebSockets/blob/master/misc/bigshot_lineup.png |
Beta Was this translation helpful? Give feedback.
-
Is turbo-http worth putting in? It's not very well known. |
Beta Was this translation helpful? Give feedback.
-
i think it's interesting since it shows you can do faster than Node "native" without compiled addons. if you want to be fair to "what's possible" in current Node, then maybe it's worth adding. i think it's more interesting than showing how slow the unfinished (and also unknown) Deno is. |
Beta Was this translation helpful? Give feedback.
-
I don't follow.
This makes no sense. Turbo-http is using a native add-on. You can't go faster than "native" without using add-ons unless you manage to build something on net. Server that's somewhat faster. But none of these projects do |
Beta Was this translation helpful? Give feedback.
-
oops, guess i missed that dependency 🤦♂️ this whole issue was pointless. sry! |
Beta Was this translation helpful? Give feedback.
-
It's not pointless for turbo http but it's pointless for everything else (restana, fastify, etc etc etc) since they all rely on node js |
Beta Was this translation helpful? Give feedback.
-
well, you do have Express in there to show how much it adds to bare Node http. restana does much better, presumably. including a router that does some form or uri interpolation in all cases rather than serving up static routes would be more apples-to-apples? |
Beta Was this translation helpful? Give feedback.
-
Express is kind of an odd thing to measure, yes. It doesn't fit, it's unnecessary to plot since it cannot be faster than Node.js BUT - it's extremely popular so I just have to add it just because. (Same goes with Socket.IO in the WebSocket benchmark - it makes no sense to have it included but because of its extreme popularity due to the snowballing effect of GitHub stars / NPM downloads I just have to add it). Everything else is not interesting. |
Beta Was this translation helpful? Give feedback.
It's not even ballpark
turbo-http without SSL (I don't even think they have SSL):
uws: