File: runbench.sh

package info (click to toggle)
nickle 2.107
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 3,756 kB
  • sloc: ansic: 27,954; yacc: 1,874; lex: 954; sh: 204; makefile: 13; lisp: 1
file content (22 lines) | stat: -rw-r--r-- 380 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
while read bmname
do
  gcc -O4 -o "$bmname" "$bmname.c" -lgmp > /dev/null 2>&1 || exit 1
  echo "../nickle $bmname.5c"
  echo "bc $bmname.bc"
  echo "./$bmname /dev/null"
done <<'EOF' |
ifact
rfact
choose
composite
EOF
while read lang input
do
  echo "$lang $input"
  for i in 1 2 3 4 5
  do
    echo -n "$i. "
    ( time $lang < $input > /dev/null ) 2>&1
  done
done