-
Notifications
You must be signed in to change notification settings - Fork 6
/
run-one-bench.sh
executable file
·56 lines (51 loc) · 1.15 KB
/
run-one-bench.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#! /bin/bash
if [ $# -lt 1 ]
then
echo "usage: $0 <benchmark_name>"
exit 1
fi
BENCHMARK="$1"
# ${BENCHMARK}/batch.sh long
# will run all Clojure versions that compile correctly, and don't take
# extremely long due to reflection, and thus are worth benchmarking.
# No reason to duplicate that version info here.
for run in 1 2 3
do
echo ""
echo "----------------------------------------"
echo "Starting set ${run}..."
echo "----------------------------------------"
# 1-4 for Linux
for jdk in 1 2 3 4
# 5 for Mac OS X
#for jdk in 5
do
case $jdk in
1)
source ${HOME}/jdks/setup-oracle-1.6-32bit.sh
;;
2)
source ${HOME}/jdks/setup-oracle-1.6-64bit.sh
;;
3)
source ${HOME}/jdks/setup-oracle-1.7-32bit.sh
;;
4)
source ${HOME}/jdks/setup-oracle-1.7-64bit.sh
;;
5)
# No need to source any setup file on Mac OS X
;;
esac
echo ""
echo " ----------------------------------------"
echo " Set ${run} using JDK number ${jdk} with 'java -version':"
java -version
echo " ----------------------------------------"
set -x
cd ${BENCHMARK}
./batch.sh long
cd ..
set +x
done
done