This commit is contained in:
Christien Rioux 2015-12-12 20:21:09 -08:00
parent 40e8f59642
commit 0edcc5eed0

View File

@ -3,7 +3,12 @@
tlctest() tlctest()
{ {
OUT=`(time tlc $1) 2>&1 | grep real | cut -f 2 | cut -c 3-` TLC=tlc
if [ -f ./tlc ]; then
TLC=./tlc
fi
OUT=`(time $TLC $1) 2>&1 | grep real | cut -f 2 | cut -c 3-`
echo "tlc: $1 $OUT" echo "tlc: $1 $OUT"
return 0 return 0
} }
@ -22,7 +27,7 @@ pythontest()
return 0 return 0
} }
echo Timing for 'lc' echo Timing for 'tlc'
tlctest test_10MB.txt tlctest test_10MB.txt
tlctest test_100MB.txt tlctest test_100MB.txt
tlctest test_1GB.txt tlctest test_1GB.txt