mirror of
https://github.com/crioux/turbo-linecount.git
synced 2024-10-27 17:24:01 +00:00
test fix
This commit is contained in:
parent
40e8f59642
commit
0edcc5eed0
@ -3,7 +3,12 @@
|
||||
|
||||
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"
|
||||
return 0
|
||||
}
|
||||
@ -22,7 +27,7 @@ pythontest()
|
||||
return 0
|
||||
}
|
||||
|
||||
echo Timing for 'lc'
|
||||
echo Timing for 'tlc'
|
||||
tlctest test_10MB.txt
|
||||
tlctest test_100MB.txt
|
||||
tlctest test_1GB.txt
|
||||
|
Loading…
Reference in New Issue
Block a user