Little database connections bench
Find a file
Julien Riou c43270a1d4
feat: Add average query time
- Add debug messages
- Use mutex to compute statistics
- Add UUID to identify database connections
- Fix connection handling for MySQL

Signed-off-by: Julien Riou <julien@riou.xyz>
2022-10-18 23:46:47 +02:00
.gitignore feat: Initial release 2022-10-09 09:26:56 +02:00
benchmark.go feat: Add average query time 2022-10-18 23:46:47 +02:00
config.go feat: Add average query time 2022-10-18 23:46:47 +02:00
database.go feat: Add average query time 2022-10-18 23:46:47 +02:00
docker-compose.yml feat: Initial release 2022-10-09 09:26:56 +02:00
go.mod feat: Add average query time 2022-10-18 23:46:47 +02:00
go.sum feat: Add average query time 2022-10-18 23:46:47 +02:00
main.go feat: Add average query time 2022-10-18 23:46:47 +02:00
Makefile feat: Initial release 2022-10-09 09:26:56 +02:00
mysql.env feat: Initial release 2022-10-09 09:26:56 +02:00
postgresql.env feat: Initial release 2022-10-09 09:26:56 +02:00
README.md chore: Update typo in README (plural form) 2022-10-09 20:21:51 +02:00
VERSION feat: Initial release 2022-10-09 09:26:56 +02:00

benchito

Like pgbench or sysbench but only for testing maximum number of connections. benchito will start multiple threads to issue very simple queries in order to avoid CPU or memory starvation.

benchito supports:

  • MySQL
  • PostgreSQL

Requirements

  • make
  • go 1.18

Setup

Compile the benchito binary:

make

Start database instances:

docker-compose pull
docker-compose up -d

Usage

./bin/benchito -help

Cleanup

docker-compose down -v