1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
#!/usr/bin/env bash
frobby=../../bin/frobby
logFile=../../bin/benchLog
# Build info in temporary place first, so that if this benchmark gets
# interrupted, the log file does not contain noise about that. This
# also allows a nice column organization using the column tool.
echo -e "\n********************************"|tee /tmp/benchHeader
# to indicate DEBUG or PROFILE builds
$frobby transform -iformat null -oformat null 2>&1|tee -a /tmp/benchHeader
echo -ne "Options: $*\nDate: "|tee -a /tmp/benchHeader
date|tee -a /tmp/benchHeader
echo|tee -a /tmp/benchHeader
./run_alexdual_bench $* 2>&1|tee /tmp/bench
./run_hilbert_bench $* 2>&1|tee -a /tmp/bench
./run_optimize_bench $* 2>&1|tee -a /tmp/bench
./run_dimension_bench $* 2>&1|tee -a /tmp/bench
column -t /tmp/bench|cat /tmp/benchHeader - >> $logFile
rm -f /tmp/bench /tmp/benchHeader
|