available languages :
- c
- c++
- java
- rust
- go
- nodejs
How to run :
# install dependencies
sudo ./bench.sh -i
# run benchmark, results will be in bench_results_*.json files
sudo ./bench.sh -h 10.0.54.130 -l c
# view results
python show_results.py
To connect through a Unix domain socket instead of TCP (server on the same host), pass the socket path with -k;
it is applied to every connector:
./bench.sh -k /run/mysqld/mysqld.sock -l c
(equivalent to exporting TEST_DB_SOCKET=/run/mysqld/mysqld.sock before running a benchmark directly)
or for a specific language
# install dependencies
sudo ./bench.sh -i -l c
# run benchmark
./bench.sh -l c
# view results
python show_results.py
possible options :
- l: language. java, c, c++, go. nothing means all.
- t: type mariadb/mysql. nothing means all.
- i: installation (no parameters). It will build/install requirement for designated language(s)
- p: server port. default 3306 if not set
- h: server host. default means '127.0.0.1'
- d: database. default "bench"
- u: username. default "root"
- p: password.