From 3f619478f796eddbba6e39502fe941b285dd97b1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 20:00:34 +0200 Subject: Adding upstream version 1:10.11.6. Signed-off-by: Daniel Baumann --- libmariadb/benchmark/launch.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 libmariadb/benchmark/launch.sh (limited to 'libmariadb/benchmark/launch.sh') 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 -- cgit v1.2.3