> Most sane languages with a good RTS and green threads will be able to match the performance of NodeJS for anything involving IO.
We've done some benchmarks comparing threads with (machine-generated) event-driven code. Unsurprisingly enough, the results indicate that well implemented user-space cooperative ("green") threads are just as fast as event-driven code, but use vastly more memory. Surprisingly enough, Linux' NPTL is only some 50% slower, which I find very impressive.
Posted Dec 20, 2012 20:21 UTC (Thu) by nix (subscriber, #2304)
[Link]
NPTL was very well optimized, every bit polished until it was far more scalable than normal users would ever need on the assumption that high-end users would push even those limits. A superb piece of work all around.