uNetworking / uWebSockets.js

μWebSockets for Node.js back-ends :metal:
Apache License 2.0
7.76k stars 563 forks source link

Performance benchmark: uWebSockets.js is beaten by happx #962

Closed jim-king-2000 closed 11 months ago

jim-king-2000 commented 11 months ago

See (removed link) for the detail.

Speak concisely: Request per second: uWebSockets.js is 182 365 and happx is 259 556.

Does it mean that uWebSockets.js could be even faster in the future?

uNetworkingAB commented 11 months ago

This is nothing new. uWS.js runs with at least a 40% performance hit compared to uWS. uWS.js is limited by node::MakeCallback and JavaScript garbage collection as well as Node.js async hooks, etc.

Nim is a statically typed compiled systems programming language

Yeah this is basic computer science 101. A scripting environment is not for speed.