summaryrefslogtreecommitdiff
path: root/benchmark/run_benchmarks.sh
diff options
context:
space:
mode:
authorJosh Blum2013-01-20 15:06:56 -0800
committerJosh Blum2013-01-20 15:06:56 -0800
commitffe6314f2cbefca8650aca2aeebc92a3b5a987bd (patch)
tree64a68173ca0974a1a9518cb20a0b90e8f65fe07f /benchmark/run_benchmarks.sh
parent5affe12349739559c8ce58e62df843f9dce49b64 (diff)
downloadsandhi-ffe6314f2cbefca8650aca2aeebc92a3b5a987bd.tar.gz
sandhi-ffe6314f2cbefca8650aca2aeebc92a3b5a987bd.tar.bz2
sandhi-ffe6314f2cbefca8650aca2aeebc92a3b5a987bd.zip
benchmark: added benchmark for rate changing
Diffstat (limited to 'benchmark/run_benchmarks.sh')
-rw-r--r--benchmark/run_benchmarks.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/benchmark/run_benchmarks.sh b/benchmark/run_benchmarks.sh
new file mode 100644
index 0000000..1f055b2
--- /dev/null
+++ b/benchmark/run_benchmarks.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+ABSOLUTE_PATH=$(cd `dirname "${BASH_SOURCE[0]}"` && pwd)/`basename "${BASH_SOURCE[0]}"`
+SOURCEDIR=`dirname $ABSOLUTE_PATH`
+BUILDDIR=$(pwd)
+
+OUT_PDF="gras_benchmark.pdf"
+OUT_PNG="gras_benchmark.png"
+
+echo "source directory ${SOURCEDIR}"
+echo "build directory ${BUILDDIR}"
+
+python -B $SOURCEDIR/run_benchmarks.py ${OUT_PDF}
+convert ${OUT_PDF} /tmp/tmp_gras_bm.png
+convert /tmp/tmp_gras_bm*.png -append ${OUT_PNG}
+rm /tmp/tmp_gras_bm*.png