4 ms·
The "benchmarks game" has a thread ring benchmark which can compare conditions/mutexes/semaphores, because for some applications they're interchangeable: 4-thr
by herf 12y ago
The "benchmarks game" has a thread ring benchmark which can compare conditions/mutexes/semaphores, because for some applications they're interchangeable:
4-thread x64:
mutex (480s): http://benchmarksgame.alioth.debian.org/u64q/program.php?test=threadring&lang=gcc&id=1 http://benchmarksgame.alioth.debian.org/u64q/program.php?tes...
sem_wait (476s):
http://benchmarksgame.alioth.debian.org/u64q/program.php?test=threadring&lang=gcc&id=2 http://benchmarksgame.alioth.debian.org/u64q/program.php?tes...
cond_wait (271s - runs single-threaded?)
http://benchmarksgame.alioth.debian.org/u64q/program.php?test=threadring&lang=gcc&id=3 http://benchmarksgame.alioth.debian.org/u64q/program.php?tes...
1-thread x86:
mutex (136s):
http://benchmarksgame.alioth.debian.org/u32/program.php?test=threadring&lang=gcc&id=1 http://benchmarksgame.alioth.debian.org/u32/program.php?test...
sem_wait (131s):
http://benchmarksgame.alioth.debian.org/u32/program.php?test=threadring&lang=gcc&id=2 http://benchmarksgame.alioth.debian.org/u32/program.php?test...
cond_wait (156s):
http://benchmarksgame.alioth.debian.org/u32/program.php?test=threadring&lang=gcc&id=3 http://benchmarksgame.alioth.debian.org/u32/program.php?test...