Re:Go as an alternative to Node.js for very fast servers
by strager on Wednesday August 14, 2013 @04:36PM
(#6214060)
Have you tried precompiling with -O2? IIRC runhaskell runs code like GHCi: interpreted bytecode by default (for source .hs files).
[ Parent
| on HN ]
Re:Go as an alternative to Node.js for very fast servers
by payload on Wednesday August 14, 2013 @06:53PM
(#6214925)
Yes I have and I invite you to do it also by yourself to check it. There is no significant difference in this benchmark between "ghc -O2" and "runhaskell". I didn't investigated why... but I would be very interested in the details :)
Also "-threaded" gives the usual penalty of bookkeeping and bad caching and stuff. You don't need threads in such a benchmark. Though I am mildly surprised that "node" runs faster with multiple processes :)