From 0bab6e867441c4d9d62b436e0aac48b7dc0096a3 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 31 Jan 2009 06:00:31 -0400 Subject: Added a tools/ subdirectory, with various maintainer related files. --- tools/speedcmp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 tools/speedcmp (limited to 'tools/speedcmp') 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 -- cgit v1.2.3