skip non-existing interpreter

master
Ivan Zahariev 2016-02-05 22:40:06 +02:00
parent 98fe1a4145
commit fa08556865
1 changed files with 4 additions and 0 deletions

4
run.sh
View File

@ -9,6 +9,10 @@ function run_benchmark() {
VERSION_CMD="$4"
VERSION_FILTER_CMD="$5"
if [ "$($VERSION_CMD 2>/dev/null)" == "" ]; then
return # skip non-existing interpreter
fi
echo "== $HEADER =="
for n in {1..2}; do
$CMD1 && OUT=$(time $CMD2)