a script for running benchmarks
This commit is contained in:
parent
26f1474fc0
commit
dffcaa7fd6
1 changed files with 34 additions and 0 deletions
34
do_benchmarks.bash
Executable file
34
do_benchmarks.bash
Executable file
|
@ -0,0 +1,34 @@
|
||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
set -x
|
||||||
|
shopt -s expand_aliases
|
||||||
|
|
||||||
|
rm -f fifo;
|
||||||
|
mkfifo fifo
|
||||||
|
|
||||||
|
alias run_java="java -cp runtime/target/scala-2.11/classes:benchmark/target/scala-2.11/classes"
|
||||||
|
|
||||||
|
ITERS=100000
|
||||||
|
|
||||||
|
time run_java org.capnproto.benchmark.CarSales object b none $ITERS
|
||||||
|
time run_java org.capnproto.benchmark.CarSales bytes b none $ITERS
|
||||||
|
time run_java org.capnproto.benchmark.CarSales bytes b packed $ITERS
|
||||||
|
time run_java org.capnproto.benchmark.CarSales client b none $ITERS < fifo | run_java org.capnproto.benchmark.CarSales server b none $ITERS > fifo
|
||||||
|
time run_java org.capnproto.benchmark.CarSales client b packed $ITERS < fifo | run_java org.capnproto.benchmark.CarSales server b packed $ITERS > fifo
|
||||||
|
|
||||||
|
|
||||||
|
ITERS=10000
|
||||||
|
time run_java org.capnproto.benchmark.CatRank object b none $ITERS
|
||||||
|
time run_java org.capnproto.benchmark.CatRank bytes b none $ITERS
|
||||||
|
time run_java org.capnproto.benchmark.CatRank bytes b packed $ITERS
|
||||||
|
time run_java org.capnproto.benchmark.CatRank client b none $ITERS < fifo | run_java org.capnproto.benchmark.CatRank server b none $ITERS > fifo
|
||||||
|
time run_java org.capnproto.benchmark.CatRank client b packed $ITERS < fifo | run_java org.capnproto.benchmark.CatRank server b packed $ITERS > fifo
|
||||||
|
|
||||||
|
|
||||||
|
ITERS=2000000
|
||||||
|
time run_java org.capnproto.benchmark.Eval object b none $ITERS
|
||||||
|
time run_java org.capnproto.benchmark.Eval bytes b none $ITERS
|
||||||
|
time run_java org.capnproto.benchmark.Eval bytes b packed $ITERS
|
||||||
|
time run_java org.capnproto.benchmark.Eval client b none $ITERS < fifo | run_java org.capnproto.benchmark.Eval server b none $ITERS > fifo
|
||||||
|
time run_java org.capnproto.benchmark.Eval client b packed $ITERS < fifo | run_java org.capnproto.benchmark.Eval server b packed $ITERS > fifo
|
||||||
|
|
Loading…
Reference in a new issue