https://github.com/dgerlanc/pyrtcbench
Benchmarks for Postgres Round Trip Client-Side Copy
https://github.com/dgerlanc/pyrtcbench
benchmarking postgresql python
Last synced: about 2 months ago
JSON representation
Benchmarks for Postgres Round Trip Client-Side Copy
- Host: GitHub
- URL: https://github.com/dgerlanc/pyrtcbench
- Owner: dgerlanc
- License: apache-2.0
- Created: 2017-11-07T14:31:18.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-08T20:10:40.000Z (over 8 years ago)
- Last Synced: 2025-04-03T17:53:03.538Z (about 1 year ago)
- Topics: benchmarking, postgresql, python
- Language: Python
- Size: 19.5 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Benchmarks for Postgres Round Trip Client-Side Copy
To run the benchmarks you must have a `DSN` environmental variable set
in a format understandable by `psycopg2`, for example:
```
export DSN="dbname=test user=postgres password=secret"
```
The full documentation for the DSN string is available
[here](http://initd.org/psycopg/docs/module.html#psycopg2.connect).
Run the benchmarks with the command:
```
pyrtcbench --n-reps 30 -n '1k' -n '10k -n '50k' \
-l 'logged' -l 'unlogged'
```
This runs 30 repetitions for each condition with 3 `n_users` settings on
logged and unlogged targets.