Created
October 11, 2011 00:18
-
-
Save m-mizutani/1276940 to your computer and use it in GitHub Desktop.
pthread_cond_signal benchmark script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
mkdir psc_benchmark | |
cd psc_benchmark | |
wget -O cond_signal_benchmark.c https://raw.github.com/gist/1273378/3cfe340710f469fdcfa623653f350184a99679c4/cond_signal_benchmark.c | |
gcc -o cond_signal_benchmark cond_signal_benchmark.c -lpthread | |
base=100000 | |
c=$base | |
while [ $c -lt 25600001 ] | |
do | |
n=0 | |
echo "try $c..." | |
while [ $n -lt 10 ] | |
do | |
n=`expr $n + 1` | |
./cond_signal_benchmark $c >> `hostname`_benchmark.log | |
done | |
c=`expr $c + $c` | |
done | |
echo "done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment