A suite of benchmarks for database libraries in Go. Currently benchmarks:
database/sql
package (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 build
to build the required Docker image (just for the application). -
$ docker-compose up -d pgm
to 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 app
to run the tests/benchmarks.