benchmark.sh 319 Bytes
Newer Older
Martin Schläffer committed
1 2
#!/bin/sh

Martin Schläffer committed
3 4
ALG=$1
FACTOR=$2
Martin Schläffer committed
5

Martin Schläffer committed
6
for i in getcycles*$ALG*; do
Martin Schläffer committed
7 8 9 10 11 12 13 14 15 16
  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