feat(bench): add CPU prover benchmark harness and baseline profiling#2726
Open
tamirhemo wants to merge 1 commit into
Open
feat(bench): add CPU prover benchmark harness and baseline profiling#2726tamirhemo wants to merge 1 commit into
tamirhemo wants to merge 1 commit into
Conversation
Add bench/ directory with evaluation infrastructure for measuring CPU prover latency. Includes run.sh (N=3 median with leaderboard logging), fixtures/fetch.sh (S3 downloader for fib/keccak/big workloads), compare.py (delta table with rank-sum p-values), and --json output mode on sp1-perf. Baseline profiling on AMD Threadripper 7970X reveals ~30% of prove time is crossbeam/rayon work-stealing overhead from SMT over-subscription, ~24% is BinomialExtensionField::mul, and ~8.5% is Poseidon2 (already AVX-512 optimized). See bench/hotspots.md. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1ca8644 to
377d9f6
Compare
Contributor
|
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
bench/directory with evaluation infrastructure for measuring CPU prover latencybench/run.sh— one-command benchmark (N=3 median, leaderboard logging, optionalsamplyprofiling)bench/fixtures/fetch.sh— S3 fixture downloader for fib/keccak/big workloadsbench/compare.py— delta table with Wilcoxon rank-sum p-values--jsonoutput mode tosp1-perf(PerfSummaryserialization)bench/hotspots.md— reveals ~30% crossbeam overhead, ~24% extension field mul, ~8.5% Poseidon2Context
This is the first PR in a stack for CPU prover optimization (see
AUTORESEARCH.md). It builds the evaluation harness needed to measure and validate the optimization experiments in subsequent PRs.Stack
tamir/perf-physical-cores— E1: rayon defaults to physical cores (-19.8% on big)tamir/perf-mimalloc— E2: optional mimalloc allocator (-7.2% fib)Test plan
bench/fixtures/fetch.shdownloads fixtures from S3bench/run.sh fibproduces a median prove_ms and appends to leaderboardbench/compare.pyprints delta table for two SHAssp1-perf --jsonemits valid JSON to stdout🤖 Generated with Claude Code