Repository navigation
perf(db): add reproducible baseline runner - #97
Merged
Merged
Conversation
Drive the existing bench_db measurement without changing its semantics, record machine/build/database metadata, keep every run in a fresh timestamped directory, and emit raw logs plus text/JSON/TSV summaries for the 1.12.0 db baseline.
Owner
Author
|
Local review before merge: the baseline driver ran five SQLite rounds, generated valid summary.json plus raw logs, kept consecutive runs in separate directories, and returned exit 1 for a bad URL. It intentionally leaves bench_db measurement semantics untouched. MySQL/PostgreSQL, p95 and ORM numbers remain explicitly unverified until later work. |
This was referenced Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #95. Parent: #88. Do not close #95: this is the baseline/methodology phase; ORM end-to-end numbers are blocked on #91/#92.
What changed
bench/orm/run_db_baseline.sh— reproducible driver around the existingbench_dbbinary. It leaves the measurement semantics untouched and adds:mkdir, no overwrite);meta.txt/meta.tsv;summary.txt,summary.json, TSV/CSV aggregates for per-call, bulk, loop-stall and concurrency cases;bench/orm/README.md— baseline protocol, build/run commands, result layout, definition of every column, how to compare future ORM numbers, and the rule that shared-CI smoke runs are not release numbers..gitignore— ignorebench/orm/results/raw local output.No database, ORM, server or C ABI code is changed.
Verification
Build: Release, SQLite 3.45.1, g++ 13.3.0,
bench_dbfrom the existing source.The generated
summary.jsonparses withpython3 -m json.tool;summary.txtcontains the per-call, bulk, loop-stall and concurrency tables.Example readings from this development-machine run (not a release gate):
Failure path:
Two consecutive invocations produced distinct timestamped directories; the second did not touch the first.
Not verified
powersavegovernor, loadavg ~3.4), not a fixed-runner release measurement.bash -npasses, but no shellcheck is installed on this machine.Review focus
uvcpp-db-baseline/1) has the fields needed for the later ORM A/B gate.bench_db.cppuntouched so historical numbers remain comparable.