2014-10-13 00:21:39 +00:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
set -x
|
2020-05-13 03:04:06 +00:00
|
|
|
set -e
|
2014-10-13 00:21:39 +00:00
|
|
|
shopt -s expand_aliases
|
|
|
|
|
|
|
|
rm -f fifo;
|
|
|
|
mkfifo fifo
|
|
|
|
|
2015-01-28 18:47:52 +00:00
|
|
|
alias run_java="java -cp runtime/target/classes:benchmark/target/classes"
|
2014-10-13 00:21:39 +00:00
|
|
|
|
|
|
|
ITERS=100000
|
|
|
|
|
2014-10-14 00:11:36 +00:00
|
|
|
time run_java org.capnproto.benchmark.CarSales object no-reuse none $ITERS
|
|
|
|
time run_java org.capnproto.benchmark.CarSales bytes no-reuse none $ITERS
|
|
|
|
time run_java org.capnproto.benchmark.CarSales bytes no-reuse packed $ITERS
|
|
|
|
time run_java org.capnproto.benchmark.CarSales client no-reuse none $ITERS < fifo | run_java org.capnproto.benchmark.CarSales server no-reuse none $ITERS > fifo
|
|
|
|
time run_java org.capnproto.benchmark.CarSales client no-reuse packed $ITERS < fifo | run_java org.capnproto.benchmark.CarSales server no-reuse packed $ITERS > fifo
|
2014-10-13 00:21:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
ITERS=10000
|
2014-10-14 00:11:36 +00:00
|
|
|
time run_java org.capnproto.benchmark.CatRank object no-reuse none $ITERS
|
|
|
|
time run_java org.capnproto.benchmark.CatRank bytes no-reuse none $ITERS
|
|
|
|
time run_java org.capnproto.benchmark.CatRank bytes no-reuse packed $ITERS
|
|
|
|
time run_java org.capnproto.benchmark.CatRank client no-reuse none $ITERS < fifo | run_java org.capnproto.benchmark.CatRank server no-reuse none $ITERS > fifo
|
|
|
|
time run_java org.capnproto.benchmark.CatRank client no-reuse packed $ITERS < fifo | run_java org.capnproto.benchmark.CatRank server no-reuse packed $ITERS > fifo
|
2014-10-13 00:21:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
ITERS=2000000
|
2014-10-14 00:11:36 +00:00
|
|
|
time run_java org.capnproto.benchmark.Eval object no-reuse none $ITERS
|
|
|
|
time run_java org.capnproto.benchmark.Eval bytes no-reuse none $ITERS
|
|
|
|
time run_java org.capnproto.benchmark.Eval bytes no-reuse packed $ITERS
|
|
|
|
time run_java org.capnproto.benchmark.Eval client no-reuse none $ITERS < fifo | run_java org.capnproto.benchmark.Eval server no-reuse none $ITERS > fifo
|
|
|
|
time run_java org.capnproto.benchmark.Eval client no-reuse packed $ITERS < fifo | run_java org.capnproto.benchmark.Eval server no-reuse packed $ITERS > fifo
|
2014-10-13 00:21:39 +00:00
|
|
|
|