diff -r 000000000000 -r 6474c204b198 js/src/parjs-benchmarks/run.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/parjs-benchmarks/run.sh Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,27 @@ +#!/bin/bash + +MODE=compare +if [[ "$1" == "--seq" ]]; then + MODE=seq + shift +elif [[ "$1" == "--par" ]]; then + MODE=par + shift +fi + +if [[ -z "$1" ]] || [[ "$1" == "--help" ]]; then + echo "Usage: run.sh [--seq | --par] path-to-shell paths-to-test" + echo "" + echo "Runs the given benchmark(s) using the given shell and " + echo "prints the results. If -seq or -par is supplied, " + echo "only runs sequentially or in parallel. Otherwise, runs both" + echo "and compares the performance." +fi + +D="$(dirname $0)" +S="$1" +shift +for T in "$@"; do + echo "$S" --ion-parallel-compile=on -e "'"'var libdir="'$D'/"; var MODE="'$MODE'";'"'" "$T" + "$S" --ion-parallel-compile=on -e 'var libdir="'$D'/"; var MODE="'$MODE'";' "$T" +done