[web-devel] Advice on implementing a web proxy

Gregory Collins greg at gregorycollins.net
Tue Nov 29 14:21:14 CET 2011


On Tue, Nov 29, 2011 at 1:47 PM, Kazu Yamamoto <kazu at iij.ad.jp> wrote:
> Thank you for your suggestion. I guess these packages use MVar in deep
> inside and they are slow. Anyway, I will try.

Hi Kazu,

In the alioth shootout, on a quad-core Intel Q6600, 64-bit GHC does
about 5.3M context switches per second for the thread-ring benchmark;
that's 186 nanoseconds per context switch. I think the amount of
overhead will be reasonable here.

http://shootout.alioth.debian.org/u64q/benchmark.php?test=threadring&lang=ghc&lang2=java

I'd be quite interested to see whether stm beats MVars here or not.

G
-- 
Gregory Collins <greg at gregorycollins.net>



More information about the web-devel mailing list