Little database connections bench
Julien Riou
c43270a1d4
- 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> |
||
---|---|---|
.gitignore | ||
benchmark.go | ||
config.go | ||
database.go | ||
docker-compose.yml | ||
go.mod | ||
go.sum | ||
main.go | ||
Makefile | ||
mysql.env | ||
postgresql.env | ||
README.md | ||
VERSION |
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