bench: add vec_nat, vec_nat32, vec_nat64 benchmarks#718
Merged
Conversation
Cover variable-length (Nat/LEB128) and fixed-width (u32, u64) vector serialization to complement the existing vec_int16 benchmark. Made-with: Cursor
Click to see raw report |
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
vec_u64 decoding costs ~409M instructions but the quota only gates memory-cost accounting, not wall time — 25M accommodates vec_nat64 while keeping all benchmarks on the same constant. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
lwshang
approved these changes
Mar 15, 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.
Summary
Adds three new canbench benchmarks to complement the existing
vec_int16:vec_nat— 262KNatelements (variable-length LEB128 encoding). Exercises theNat::encode/decodepaths and the serde visitor round-trip for bignum types.vec_nat32— 2Mu32elements (fixed-width 4 bytes). Tests fixed-width primitive vector performance.vec_nat64— 2Mu64elements (fixed-width 8 bytes). Tests the largest fixed-width primitive vector.Baseline results (master,
ba72cf4)These baselines make the impact of the performance work in
sat-perf-improvementsdirectly measurable:Relates to #710