LWN.net Logo

Cool new Free software

Cool new Free software

Posted Dec 20, 2012 18:37 UTC (Thu) by jch (guest, #51929)
In reply to: Cool new Free software by ms
Parent article: Status.net service to phase out, replaced by pump.io

> 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.

See Figures 4 and 6 on pages 10 and 12 of http://www.pps.univ-paris-diderot.fr/~jch/research/cpc-20...

-- jch


(Log in to post comments)

Cool new Free software

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.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds