File: runbench

package info (click to toggle)
frobby 0.9.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,616 kB
  • sloc: cpp: 30,134; sh: 1,184; makefile: 312; ansic: 102; lisp: 10
file content (23 lines) | stat: -rwxr-xr-x 846 bytes parent folder | download | duplicates (5)
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