-
Notifications
You must be signed in to change notification settings - Fork 111
[storage/adb/any] add benchmark for adb::any startup #1121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds a Criterion benchmark that measures the startup time of an adb::any
database by generating a large random DB and timing reopen operations.
- Introduces a new bench harness (
bench.rs
) for adb/any. - Implements random-data generation and initialization timing in
anydb_init.rs
. - Adjusts snapshot read buffer size in
any.rs
. - Registers the new benchmark in
storage/Cargo.toml
.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
File | Description |
---|---|
storage/src/adb/benches/bench.rs | Adds criterion_main! entry for anydb_init::benches . |
storage/src/adb/benches/anydb_init.rs | Implements generation of a large random DB and async benchmark for init timing. |
storage/src/adb/any.rs | Increases SNAPSHOT_READ_BUFFER_SIZE from 64KiB to 128KiB. |
storage/Cargo.toml | Registers a new bench target named adb . |
c0b47da
to
ea7ba7d
Compare
ea7ba7d
to
9dab587
Compare
9dab587
to
0c9bf95
Compare
1f5971a
to
41e40ab
Compare
41e40ab
to
21cf3ec
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
@@ Coverage Diff @@
## main #1121 +/- ##
==========================================
- Coverage 91.01% 90.98% -0.04%
==========================================
Files 191 214 +23
Lines 55231 57430 +2199
==========================================
+ Hits 50270 52253 +1983
- Misses 4961 5177 +216 see 67 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
The benchmark creates a large-ish random DB, closes it, then times how long it takes to re-open.