benchmark-getcycles.sh 323 Bytes
Newer Older
Martin Schlaeffer committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/sh

FACTOR=$1
ALG=$2

for i in getcycles*${ALG}v12*; 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 -k7 -t\|
done 2>/dev/null
echo