benchmark.sh 307 Bytes
Newer Older
Martin Schläffer committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/sh

FACTOR=$1

for i in getcycles*; do
  echo
  echo $i:
  echo
  echo "|     1 |     8 |    16 |    32 |    64 |  1536 |  long |"
  echo "|------:|------:|------:|------:|------:|------:|------:|"
  for n in $(seq 5); do
    ./$i $FACTOR | tail -n 1
  done | sort -n -k8 -t'|'
done 2>/dev/null
echo