29 Nov
2011
29 Nov
'11
1:21 p.m.
On Tue, Nov 29, 2011 at 1:47 PM, Kazu Yamamoto <kazu@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=gh... I'd be quite interested to see whether stm beats MVars here or not. G -- Gregory Collins <greg@gregorycollins.net>