https://github.com/jackc/pgxbench
https://github.com/jackc/pgxbench
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jackc/pgxbench
- Owner: jackc
- Created: 2016-04-28T22:02:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-30T17:24:27.000Z (over 9 years ago)
- Last Synced: 2025-03-21T10:09:57.260Z (8 months ago)
- Language: PLSQL
- Size: 334 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pgx Benchmark
This tests the performance of [pgx](https://github.com/jackc/pgx), [pgx
through database/sql](https://github.com/jackc/pgx/tree/master/stdlib),
[pq](https://github.com/lib/pq) through database/sql, [go-pg](github.com/go-
pg/pg), and theoretical maximum PostgreSQL performance. It always uses stored
procedures.
## Configuration
go_db_bench reads its configuration from the environment:
PGHOST - defaults to localhost
PGUSER - default to OS user
PGPASSWORD - defaults to empty string
PGDATABASE - defaults to go_db_bench
## Core Benchmarks
go_db_bench includes tests selecting one value, one row, and multiple rows.
Example execution:
PGHOST=/private/tmp go test -test.bench=. -test.benchmem