5 ms·
"I found something faster than Node.js" Why do people treat this as such a discovery? Where did Node claim to be the fastest solution to everything? The only
by chjj 15y ago
"I found something faster than Node.js"
Why do people treat this as such a discovery? Where did Node claim to be the fastest solution to everything?
The only answer I can think of is that people feel threatened by node.js for some reason, and constantly feel the need to criticize it for not being the best at everything.
If you want to serve a 1mb file a million times, without caching it, or using sendfile, yeah, node will probably be slower compared to other things. It gets really old seeing posts like these.
- htilford 15y agoThe worst part is that they all end up showing their multicore program is faster than a single threaded node program. I haven't seen a single one use cluster.
- pjscott 15y agoActually, it looks like the Java code is doing basically all the work using the sendfile(2) system call, but the node.js code is using its stream abstraction over file reads and socket writes. This benchmark proves exactly one thing: zero-copy networking system calls can make things faster. It doesn't say anything about the JVM or V8 except that neither is absolutely pathological for this. Perhaps the author of the benchmark will assume that I'm only saying this because I am -- to quote his closing section -- a "dogmatic JVM-hater". Without deigning to reply to that notion, I will point out that preemptively smearing people who would disagree with you is rhetorically rude and generally not a good idea if you want to become right about things.