Skip to content

When it comes to uWebSockets and uWebSockets.js, what would be the difference in performance? #1415

Answered by e3dio
real2two asked this question in Q&A
Discussion options

You must be logged in to vote

They both use the same library underneath, that is the whole point. If you call app.publish() it will broadcast messages the same way with the same speed. Most of any difference is all the stuff you stack on top to code your app, your JS will be less efficient depending on what you add. If you minimize your JS it can also be fast. The ease of coding with JS especially with async promises and things like worker threads with Node make it a better option for me

Receiving large number of websocket message events is more efficient staying in C++ than switching between C++ and JS

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by real2two
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants