CICD-319 · Database performance regression
Encyclopedia · Database delivery and migration · All snippets
Previous · CICD-318 · Next · CICD-320
1. Where it fits
- Placement CI run step or authorized lab terminal.
- Prerequisites disposable database, migration tools and a scoped database role.
- Platforms local-linux, github-actions, gitea-actions.
- Parameters
DATABASE_URL.
2. Copy the snippet
bash
pgbench --no-vacuum --client=4 --time=30 --file=tests/query.sql "${DATABASE_URL:?}" | tee pgbench.txt3. How it works
The benchmark runs the selected workload with fixed concurrency and duration. Recorded latency and throughput depend on database state and warm-up.
4. Verify the result
Use fixed data, app-like queries and repeated runs. Compare latency and throughput against a known baseline in equally sized environments.
Validation syntax-validated (Bash parse). Status definitions.