summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-13 17:50:23 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-13 17:50:23 -0400
commit7708ed1a750fb3dd79fad1562f0fec8a06422339 (patch)
tree711a92d5d82f2e7f2f84c142a829dc31d8583e6e /tools
parentd578395a65261ee297656d3df3a90756fb4c8b9c (diff)
downloadfork-ledger-7708ed1a750fb3dd79fad1562f0fec8a06422339.tar.gz
fork-ledger-7708ed1a750fb3dd79fad1562f0fec8a06422339.tar.bz2
fork-ledger-7708ed1a750fb3dd79fad1562f0fec8a06422339.zip
Created tools/speed-test.sh for speed testing
Diffstat (limited to 'tools')
-rwxr-xr-xtools/speed-test.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/speed-test.sh b/tools/speed-test.sh
new file mode 100755
index 00000000..0139a11d
--- /dev/null
+++ b/tools/speed-test.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+set -e
+
+cd ~/src/ledger
+/bin/rm -fr ~/Products/ledger/opt
+./acprep --no-python -j16 opt make check
+
+COMMIT=$(git describe --long --all)
+
+SPEEDS=$(./acprep --no-python -j16 opt make speedtest 2>&1 \
+ | grep "Finished executing command" \
+ | awk '{print $1}' \
+ | xargs)
+
+echo $COMMIT,$(echo $SPEEDS | sed 's/ /,/g') >> speed.log
+
+exit 0