Created
November 28, 2011 23:00
-
-
Save jamesnvc/1402500 to your computer and use it in GitHub Desktop.
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/bash | |
run_benchmark() { | |
echo "Running $2 benchmark with $1 prefetcher" | |
./sim-cache -redir:sim benchmark-output/$1-$2 \ | |
-redir:prog /dev/null \ | |
-config cache-config/cache-lru$3.cfg /cad2/ece552f/benchmarks/$2.eio | |
} | |
mkdir -p benchmark-output | |
for bmark in 'compress' 'gcc' 'go'; do | |
run_benchmark 'baseline' $bmark | |
for prefetcher in 'stride' 'nextline' 'open'; do | |
run_benchmark $prefetcher $bmark "-$prefetcher" | |
done | |
done | |
for prefetcher in 'baseline' 'stride' 'nextline' 'open'; do | |
echo "$prefetcher:" | |
echo "============================" | |
for bmark in 'compress' 'gcc' 'go'; do | |
echo $bmark | |
grep '^dl1.miss_rate' benchmark-output/$prefetcher-$bmark | |
done | |
echo | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment