diff options
author | John Wiegley <johnw@newartisans.com> | 2009-01-31 06:00:31 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-01-31 06:00:31 -0400 |
commit | 0bab6e867441c4d9d62b436e0aac48b7dc0096a3 (patch) | |
tree | 5b1db4106302abc952a454511f52f2f1f2a6ab01 /tools/speedcmp | |
parent | f749a1bb1eb40faa9cac685a02d012a5efb11aaa (diff) | |
download | fork-ledger-0bab6e867441c4d9d62b436e0aac48b7dc0096a3.tar.gz fork-ledger-0bab6e867441c4d9d62b436e0aac48b7dc0096a3.tar.bz2 fork-ledger-0bab6e867441c4d9d62b436e0aac48b7dc0096a3.zip |
Added a tools/ subdirectory, with various maintainer related files.
Diffstat (limited to 'tools/speedcmp')
-rwxr-xr-x | tools/speedcmp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/speedcmp b/tools/speedcmp new file mode 100755 index 00000000..a040724e --- /dev/null +++ b/tools/speedcmp @@ -0,0 +1,18 @@ +#!/bin/sh + +# ex: speedcmp ledger ledger-2.4 50 + +export LEDGER_FILE=$PWD/tools/temp.dat +export LEDGER_CACHE=$PWD/tools/temp.cache + +count=$1 +shift 1 + +for i in "$@"; do + echo -n "textual $i: " + average -n $count $i -o /dev/null -f $LEDGER reg rent + + rm -f $LEDGER_CACHE; $i -o /dev/null reg rent > /dev/null 2>&1 + echo -n "binary $i: " + average -n $count $i -o /dev/null reg rent +done |