summaryrefslogtreecommitdiff
path: root/tools/speedcmp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/speedcmp')
-rwxr-xr-xtools/speedcmp18
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