bench: add Ceno batched main sumcheck benchmark#54
Merged
Conversation
kunxian-xia
approved these changes
May 11, 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.
Problem
We need a benchmark shape closer to Ceno batched main sumcheck workloads, rather than only the smaller synthetic mixed-sum/product cases.
The existing
devirgo_sumcheckbenches are useful for focused frontload-vs-suffix comparisons, but they do not model a batched expression with many MLEs and heterogeneous product degrees across multiple chip-like groups.Approach
Add a new Criterion bench target:
The benchmark builds a deterministic Ceno-like batched main sumcheck case with:
The default shape is:
Environment knobs:
GKR_CENO_BENCH_SCALEtiny,default,large, orceno-ishshape.GKR_CENO_BENCH_MAX_VARSGKR_CENO_BENCH_SAMPLESGKR_CENO_BENCH_SUFFIX=1The PR also fixes clippy nits in the new bench so workspace clippy stays clean.
Benchmark Result
Command:
Shape:
frontloadsuffix_legacyFrontload speedup vs suffix legacy:
7.65x.Testing
cargo fmtcargo make clippyGKR_CENO_BENCH_SUFFIX=1 GKR_CENO_BENCH_SAMPLES=10 cargo bench -p sumcheck --bench ceno_batched_mainRisk / Rollout
GKR_CENO_BENCH_SUFFIX=1; default run benchmarks frontload only.cargo make clippypasses after the bench additions.This PR only adds benchmark code and does not affect prover/verifier runtime behavior.
Copilot Reviewer Directive (keep this section)
When Copilot reviews this PR, apply
.github/copilot-instructions.mdstrictly.[severity] path:line (symbol)format.PR metadata: descriptionas a finding.