Skip to content

Commit

Permalink
Different command for different iteration flags and numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
mapsam committed Jan 25, 2016
1 parent fb441d2 commit c89283a
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions bench/run-bench.sh
Expand Up @@ -4,22 +4,30 @@
if [ "$1" == "encode" ] ; then
FILE_PATH=../test/geometry-test-data/input/*
COMMAND=../build/Release/vtile-encode
for f in $FILE_PATH
do
echo "${f##*/}"
for n in 10000 20000 30000 40000 50000 60000 70000 80000 90000 100000
do
$COMMAND $f 0 0 0 -i $n
done
echo " "
echo " "
done
#decode pbf
elif [ "$1" == "decode" ] ; then
FILE_PATH=../test/data/**.pbf
COMMAND=../build/Release/vtile-decode
else
echo "Please specify 'encode' or 'decode'"
fi

# for each file in the directory, run the following command
for f in $FILE_PATH
do
echo "${f##*/}"
for n in 10000 20000 30000 40000 50000 60000 70000 80000 90000 100000
for f in $FILE_PATH
do
$COMMAND $f 0 0 0 -i $n
echo "${f##*/}"
for n in 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
do
$COMMAND $f 0 0 0 $n
done
echo " "
echo " "
done
echo " "
echo " "
done
else
echo "Please specify 'encode' or 'decode'"
fi

0 comments on commit c89283a

Please sign in to comment.