blob: a040724e3ce7408724a346567af4b71ee12a4dce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
|