|
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%). |
Replies: 12 comments
|
No need to benchmark, I already know it's not close. |
|
It's not even ballpark turbo-http without SSL (I don't even think they have SSL): uws: uws with SSL: |
|
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! |
|
You mean turbo-http? Uws is not comparable with Crystal. Where do you publish these results? |
|
https://github.com/uNetworking/uWebSockets/blob/master/misc/bigshot_lineup.png |
|
Is turbo-http worth putting in? It's not very well known. |
|
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. |
|
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 |
oops, guess i missed that dependency 🤦♂️ this whole issue was pointless. sry! |
|
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 |
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? |
|
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. |
It's not even ballpark
turbo-http without SSL (I don't even think they have SSL):
uws: