Re:.NET and Node.JS – Performance Comparison
by angersock on Friday March 29, 2013 @12:16PM
(#5461420)
So, what's wrong with his Node code? What's the tell?
Re:.NET and Node.JS – Performance Comparison
by thedufer on Friday March 29, 2013 @12:48PM
(#5461581)
He doesn't know that node is single-threaded. Take an embarrassingly-parallel task (serving multiple unrelated requests, for example) and pit a single thread against multiple threads. Guess who's going to win?
Depending on the size of the .NET's thread pool, this probably more than accounts for the difference. The drastic inefficencies from not knowing what the async library does are just icing.
I'm glad he provided source code, but he clearly doesn't know Node well enough to provide an Apples to Apples comparison. Maybe .NET will blow Node away? Fine, but make sure you know Node well before you do the test.
Still, it's a nice conversation to start. I don't care how much I hate the company that builds it: if a tool is best for a job I want to know about it.
But your complaint that nobody is doing the tests: C'mon, how many Node experts even have Windows laying around?