Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 #!/bin/bash
3 MODE=compare
4 if [[ "$1" == "--seq" ]]; then
5 MODE=seq
6 shift
7 elif [[ "$1" == "--par" ]]; then
8 MODE=par
9 shift
10 fi
12 if [[ -z "$1" ]] || [[ "$1" == "--help" ]]; then
13 echo "Usage: run.sh [--seq | --par] path-to-shell paths-to-test"
14 echo ""
15 echo "Runs the given benchmark(s) using the given shell and "
16 echo "prints the results. If -seq or -par is supplied, "
17 echo "only runs sequentially or in parallel. Otherwise, runs both"
18 echo "and compares the performance."
19 fi
21 D="$(dirname $0)"
22 S="$1"
23 shift
24 for T in "$@"; do
25 echo "$S" --ion-parallel-compile=on -e "'"'var libdir="'$D'/"; var MODE="'$MODE'";'"'" "$T"
26 "$S" --ion-parallel-compile=on -e 'var libdir="'$D'/"; var MODE="'$MODE'";' "$T"
27 done