/postgres_bench

A repository to benchmark Postgres driver for Golang.

Primary LanguageGoMIT LicenseMIT

Postgres Bench

A repository to benchmark Postgres driver for Golang.

Setting up Postgres

  1. Connect to Postgres as an admin: sudo -l postgres psql
  2. 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;
  1. fill the database: go run .

Running the benchmark

Use the Go benchmark program: go test -bench .