-
Notifications
You must be signed in to change notification settings - Fork 14
/
bench.sh
executable file
·24 lines (16 loc) · 1.06 KB
/
bench.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
#
# Since running everything at once yields inconsistent result, this script
# runs each benchmark one by one.
# An optional numeric argument can be used to run multiple iterations.
#
if [ ! -z $1 ]; then
QPB_BENCH_EXTRA_ARG="-iterations $1"
fi
OUT=$(cd $(dirname ${BASH_SOURCE[0]}) && pwd)/out
$OUT/bin/test-protobuf-qml -input $OUT/test/protobuf/tst_benchmark.qml JsonBenchmark::benchmark_json_ctor $QPB_BENCH_EXTRA_ARG
$OUT/bin/test-protobuf-qml -input $OUT/test/protobuf/tst_benchmark.qml JsonBenchmark::benchmark_json $QPB_BENCH_EXTRA_ARG
$OUT/bin/test-protobuf-qml -input $OUT/test/protobuf/tst_benchmark.qml SerializationBenchmark::benchmark_ctor $QPB_BENCH_EXTRA_ARG
$OUT/bin/test-protobuf-qml -input $OUT/test/protobuf/tst_benchmark.qml SerializationBenchmark::benchmark_v4cb $QPB_BENCH_EXTRA_ARG
$OUT/bin/test-protobuf-qml -input $OUT/test/protobuf/tst_benchmark.qml SerializationBenchmark::benchmark_v4 $QPB_BENCH_EXTRA_ARG
$OUT/bin/test-protobuf-qml -input $OUT/test/protobuf/tst_benchmark.qml SerializationBenchmark::benchmark_lecagy $QPB_BENCH_EXTRA_ARG