Repository navigation
test(bench): measure ours with and without the raw skip - #644
Conversation
- compare_ffi measures two configurations of our encoder in every cell against the same libzstd reference: searched (the raw skip off, every block searched as libzstd searches it) and raw_skip (the library default); each gets its own criterion arm, paired measurement and size report - where both write byte-identical frames, the size and the decode are reported once under `any`, so a cell is not measured or stored twice - compare_ffi_memory reports both peaks the same way - RAW_SKIP=0 / RAW_SKIP=1 restrict a local run to one configuration; unset runs both - the CI parser, the level aggregation and the gh-pages merge keep the configurations as separate records under the same series key; the record cap grows to hold as many snapshots as before - the dashboard switches every chart between the two with one checkbox, searched by default; snapshots recorded before measured the raw skip on and show under it Closes #643
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 30 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
## 🤖 New release * `structured-zstd`: 0.3.0 -> 0.4.0 <details><summary><i><b>Changelog</b></i></summary><p> <blockquote> ## [0.4.0](v0.3.0...v0.4.0) - 2026-11-14 ### Added - *(decoding)* [**breaking**] hold dictionary content in the caller's buffer ([#649](#649)) - *(encode)* let the caller choose how a frame uses a dictionary ([#641](#641)) ### Fixed - *(c-api)* refuse a decompression bound the result cannot carry ([#668](#668)) ### Performance - *(encode)* one dictionary index per dictionary for attached and copied frames ([#662](#662)) - *(decoding)* decode small frames' long matches without libc memcpy ([#658](#658)) - *(encode)* trim dfast tail seeding and the optimal parser's per-node work ([#656](#656)) - *(encode)* one page fault per table page on a fresh workspace ([#655](#655)) - *(decoding)* close the x86 decode gap to libzstd ([#652](#652)) ### Testing - *(bench)* measure ours with and without the raw skip ([#644](#644)) </blockquote> </p></details> --- This PR was generated with [release-plz](https://github.com/release-plz/release-plz/). Co-authored-by: sw-release-bot[bot] <255865126+sw-release-bot[bot]@users.noreply.github.com>
Summary
searched(the raw skip off, every block searched as libzstd searches it) andraw_skip(the library default).searched.Changes
compare_ffi: a criterion arm, a paired measurement and a size report per configuration in the compress and compress-dict groups; a decompress source per configuration whose frames differ (rust_raw_skip_stream). Where both write byte-identical frames, the size and the decode are reported once underany(REPORT_SAME_FRAMESmarks the decode).compare_ffi_memory: compress and decompress peaks per configuration, collapsed toanywhere they agree.RAW_SKIP=0/RAW_SKIP=1restrict a local run to one configuration; unset runs both.run-benchmarks.shfiles every row underrust_variant; the level aggregation and the gh-pages merge keep the configurations as separate records under the same series key, and the record cap grows to hold as many snapshots as before.BENCHMARKS.mddocuments both configurations.Testing
Clippy and formatting pass on the bench crate. A local two-round run of
run-benchmarks.shon two levels with both bench binaries parsed end to end into the delta, report and relative outputs; the dashboard, loaded with that run on top of the published payload, switches between the two configurations. The bench matrix itself runs on push tomain.Closes #643