#! /bin/bash
tm () {
  \time -f "%U $*" "$@" 2>&1 >/dev/null
}

export IFORTH=/nfs/scratch/anton/iforth-2.1.2517/dfwforth
export IFORTHBIN=$IFORTH/iflinux/bin/iforth32.img
for i in *.ps; do
  tm gs -dBATCH $i
done
for i in *.factor; do
  tm factor $i -shell=none
done
for i in *.fs; do
  tm gforth-fast $i -e bye
  tm ~/gforth-0.6.2/gforth-fast $i -e bye
  tm iforth-noprf "include ../../anslocal.fs include $i bye"
done
