diff options
Diffstat (limited to 'libmariadb/benchmark/launch.sh')
-rwxr-xr-x | libmariadb/benchmark/launch.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libmariadb/benchmark/launch.sh b/libmariadb/benchmark/launch.sh new file mode 100755 index 00000000..15e98c3e --- /dev/null +++ b/libmariadb/benchmark/launch.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +set -ex + +sudo cpupower frequency-set --governor performance || true + + +g++ main-benchmark.cc -std=c++11 -isystem benchmark/include -Lbenchmark/build/src -I/usr/local/include/mariadb -I/usr/local/include/mariadb/mysql -L/usr/local/lib/mariadb/ -lmariadb -lbenchmark -lpthread -o main-benchmark +./main-benchmark --benchmark_repetitions=30 --benchmark_time_unit=us --benchmark_min_warmup_time=10 --benchmark_counters_tabular=true --benchmark_format=json --benchmark_out=mariadb.json + + +g++ main-benchmark.cc -std=c++11 -isystem benchmark/include -Lbenchmark/build/src -lbenchmark -lpthread -DBENCHMARK_MYSQL -lmysqlclient -o main-benchmark +./main-benchmark --benchmark_repetitions=30 --benchmark_time_unit=us --benchmark_min_warmup_time=10 --benchmark_counters_tabular=true --benchmark_format=json --benchmark_out=mysql.json + + +pip3 install -r benchmark/requirements.txt +benchmark/tools/compare.py -a --no-utest benchmarksfiltered ./mysql.json MySQL ./mariadb.json MariaDB |