A repository to benchmark Postgres driver for Golang.
- Connect to Postgres as an admin:
sudo -l postgres psql
- Create an user and a database for the application:
CREATE DATABASE postgres_bench;
CREATE USER postgres_bench PASSWORD 'postgres_bench';
ALTER DATABASE postgres_bench OWNER TO postgres_bench;
- fill the database:
go run .
Use the Go benchmark program: go test -bench .