-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·33 lines (30 loc) · 805 Bytes
/
run.sh
File metadata and controls
executable file
·33 lines (30 loc) · 805 Bytes
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
#!/bin/bash
tool=$1
shift
if [ $# -gt 0 ]; then
suites=$@
else
suites=`cat suites.txt`
fi
timeout=60 # Time limit in seconds
ulimit -t $timeout
ulimit -m 4000000 # Memory limit in KB
dashes=`printf '%80s' | tr ' ' -`
for suite in $suites; do
printf '%.*s\n' 80 "-- $suite $dashes"
out_file=`echo "$tool-$suite.txt" | sed s#/#-#g`
rm -f results/$out_file
for benchmark in `ls $suite/*.smt2`; do
start=`gdate +%s.%N`
result=`./run-$tool.sh $benchmark`
end=`gdate +%s.%N`
runtime=$( echo "$end - $start" | bc -l )
benchname=`basename $benchmark`
if (( $(echo "$runtime > $timeout" | bc -l) )); then
result="to"
runtime=$timeout
fi
printf "%-60s %8s %.1f\n" $benchname $result $runtime
echo $benchmark $result $runtime >> results/$out_file
done
done