mysql/tools/ci/run_benchmarks.py
Anarthal (Rubén Pérez) 303b9f0b59
Added benchmarks against the official drivers
Added one_small_row, one_big_row, many_rows, stmt_params benchmarks against libmysqlclient and libmariadb
Added a CI build to compile and run benchmarks
Added a Python script to run the benchmarks
Refactored the connection_pool benchmark to be use data independent from examples

close #458
2025-04-02 11:32:43 +02:00

22 lines
606 B
Python

#!/usr/bin/python3
#
# Copyright (c) 2019-2025 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#
# This script is a utility, and not used by CI. Having it here simplifies imports, though.
from ci_util.bench import run_benchmarks
from pathlib import Path
import sys
if __name__ == '__main__':
run_benchmarks(
exe_dir=Path(sys.argv[1]),
server_host='localhost',
connection_pool_iters=0,
protocol_iters=25
)