speedcmp 398 B

12345678910111213141516171819
  1. #!/bin/sh
  2. # ex: speedcmp ledger ledger-2.4 50
  3. export LEDGER_FILE=$PWD/tools/temp.dat
  4. export LEDGER_CACHE=$PWD/tools/temp.cache
  5. count=$1
  6. shift 1
  7. for i in "$@"; do
  8. echo -n "textual $i: "
  9. average -n $count $i -o /dev/null -f $LEDGER reg rent
  10. rm -f $LEDGER_CACHE; $i -o /dev/null reg rent > /dev/null 2>&1
  11. echo -n "binary $i: "
  12. average -n $count $i -o /dev/null reg rent
  13. done