Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 72 lines (56 sloc) 2.21 KB
#! /bin/bash
usage() { echo "Usage: $0 [-o <output_suffix_string>] [-d <duration_seconds>]" 1>&2; exit 1; }
./clean >/dev/null
OUTPUT_SUFFIX="Default"
DURATION=120
while getopts ":o:d:" o; do
case "${o}" in
o) OUTPUT_SUFFIX=${OPTARG};;
d) DURATION=${OPTARG};;
*) usage;;
esac
done
shift $((OPTIND -1))
function runVariant() {
local OPTIND o
local language runner variant lmode
language=$1
pushd $language >/dev/null
shift
runner=./run
variant=$language
lmode=3
while getopts ":l:r:v:" o; do
case "${o}" in
l) lmode=${OPTARG};;
r) runner=${OPTARG};;
v) variant=${OPTARG};;
esac
done
shift $((OPTIND -1))
OUTPUT="../../results/$variant-$OUTPUT_SUFFIX.txt"
echo Series: $variant, writing output to $OUTPUT
echo
$runner -l $lmode -p f -r a -t 1 2>&1 | tee $OUTPUT || true
$runner -l $lmode -p m -r a -t 25pct 2>&1 | tee -a $OUTPUT || true
$runner -l $lmode -p m -r a -t 50pct 2>&1 | tee -a $OUTPUT || true
$runner -l $lmode -p m -r a -t 75pct 2>&1 | tee -a $OUTPUT || true
$runner -l $lmode -p m -r a 2>&1 | tee -a $OUTPUT || true
$runner -l $lmode -p m -r b -d $DURATION -m 0 2>&1 | tee -a $OUTPUT || true
$runner -l $lmode -p m -r b -d $DURATION -m 1 2>&1 | tee -a $OUTPUT || true
$runner -l $lmode -p m -r b -d $DURATION -m 10pct 2>&1 | tee -a $OUTPUT || true
$runner -l $lmode -p m -r b -d $DURATION -m 25pct 2>&1 | tee -a $OUTPUT || true
$runner -l $lmode -p m -r b -d $DURATION -m 50pct 2>&1 | tee -a $OUTPUT || true
$runner -l $lmode -p m -r b -d $DURATION -m 75pct 2>&1 | tee -a $OUTPUT || true
$runner -l $lmode -p m -r b -t 75pct -d $DURATION -m 0 2>&1 | tee -a $OUTPUT || true
$runner -l $lmode -p m -r b -t 75pct -d $DURATION -m 1 2>&1 | tee -a $OUTPUT || true
$runner -l $lmode -p m -r b -t 75pct -d $DURATION -m 10pct 2>&1 | tee -a $OUTPUT || true
$runner -l $lmode -p m -r b -t 75pct -d $DURATION -m 25pct 2>&1 | tee -a $OUTPUT || true
$runner -l $lmode -p m -r b -t 75pct -d $DURATION -m 50pct 2>&1 | tee -a $OUTPUT || true
$runner -l $lmode -p m -r b -t 75pct -d $DURATION -m 75pct 2>&1 | tee -a $OUTPUT || true
popd >/dev/null
}
runVariant CSharp
runVariant CSharp -l 0 -v CSharp-Batch
runVariant CSharp -r ./run-wgc -v CSharp-WorkstationGC
runVariant Go