view src/grep_bench.sh @ 20:de33e445fcc7

add contact & description to Repository.
author Ryoma SHINYA <shinya@firefly.cr.ie.u-ryukyu.ac.jp>
date Mon, 05 Jul 2010 18:42:11 +0900
parents ec36e784df2e
children 3ac5cabb2d76
line wrap: on
line source

#!/bin/sh

egrepout="/tmp/egrep.out"
jitgrepout="/tmp/jitgrep.out"
agrepout="/tmp/agrep.out"

echo "[jitgrep]"
time ./jitgrep.py $@ > $jitgrepout

echo "\n[agrep]"
time agrep $@ > $agrepout

echo "\n[egrep]"
time egrep    $@ > $egrepout

echo "\n[diff egrep jitgrep]"
diff $egrepout $jitgrepout

echo "[diff agrep jitgrep]"
diff $agrepout $jitgrepout

#rm -f $egrepout $jitgrepout