A suite of benchmarks for database libraries in Go. Currently benchmarks:
database/sqlpackage (built-in)database/sqlx
The easiest way to run these benchmarks is via Docker and docker-compose (previously known as fig). You'll want both installed and available on your $PATH.
-
$ docker-compose buildto build the required Docker image (just for the application). -
$ docker-compose up -d pgmto start a database server instance (postgresql). -
$ docker-compose run app goose up(only once) to run the database migrations, and bring the database up-to-date. -
$ docker-compose run appto run the tests/benchmarks.