Repository navigation
perf(orm): add the SQLite ORM A/B benchmark and report - #105
Merged
Merged
Conversation
Add a SQLite A/B benchmark for point lookups, 100-row reads, insert/update/remove, SQL construction and row mapping, with a non-overwriting driver script and a documented gate report. Current development-machine point-select A/B exceeds the hard gate; the report states that explicitly.
Update the benchmark report with the three-round SQLite result after the ORM SQL-shape and validation caches: all end-to-end p50/p99 cases are within the 15% target on this machine, while the fixed-runner and MySQL/PostgreSQL caveats remain.
Owner
Author
|
Local review before merge: three-round SQLite A/B completed with raw/ORM SQL equivalence checked; all end-to-end p50/p99 cases are within the 15% target on this development machine, the JSON validates, bad-input exit codes are 1/2, and consecutive runs do not overwrite. This is not a fixed-runner release gate; MySQL/PostgreSQL, p95, pool/concurrency and async latency remain open. |
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 yet: this supplies the SQLite A/B measurements; the fixed-runner gate, MySQL/PostgreSQL and p95 are still open.
What changed
bench/orm/bench_orm.cpp— real SQLite A/B comparison, same client and connection:bench/orm/run_orm_overhead.sh— 3-round driver, fresh timestamped result directory, raw logs, TSV/JSON, per-run and aggregate ORM-vs-raw overhead, failure paths.bench/CMakeLists.txttarget guarded by DB + ORM.bench/orm/README.mdmethodology, result directory layout, field definitions, limitations and the 8.7 post-optimization report.No
src/behavior is changed by this PR; the ORM optimizations were #103/#104.Result (3 rounds, SQLite, development machine)
This is not a release gate: the machine is a
powersave, unbound development machine with loadavg ~3.0; there are only 3 rounds, no p95, and only SQLite. A fixed-runner,performance-governor run is required before #95 can close.Verification
Unverified