[Haskell-cafe] Project postmortem II /Haskell vs. Erlang/

Bulat Ziganshin bulatz at HotPOP.com
Thu Jan 5 05:01:42 EST 2006


Hello Bulat,

Thursday, January 05, 2006, 3:14:12 AM, you wrote:

>>> 3) i also placed lock around `unstuff` call to decrease GC times

JR>> This sort of invalidates the test. We have already proven that it  
JR>> works much better when you do this but it just pushes the delays  
JR>> upstream.

on my 1ghz duron, unpickling speed (for sequential code) is about 2
mb/s. with 50 kb packets, it can run 40 packets/s and 120 packets in a
3 sec. my changes to program ensure minimal overhead of threading, so
i can guarantee 120 working threads for this program. your processor
is slightly faster, it will run 150-200 threads. to futher increase
speed, you need either 

1) use faster processor or many processors
2) speed up unpickling
3) learn timeout strategy of server and write program according to it

i also recommend you to try FD from my Binary package instead of
Handles because using 1000 Handles may involve a large memory/cpu pressure


-- 
Best regards,
 Bulat                            mailto:bulatz at HotPOP.com





More information about the Haskell-Cafe mailing list