benchmark-chonk
БесплатноБез исполняемых скриптовНе проверенRun realistic Chonk (client IVC) benchmarks using pinned protocol inputs. Covers native and WASM proving, per-circuit breakdowns, BB_BENCH instrumentation…
от AztecProtocol★ 458 звёзд на GitHubОб этом скилле
Benchmark Chonk
Run realistic Chonk IVC benchmarks using pinned protocol inputs (real transaction flows captured from end-to-end tests).
Chonk has no synthetic micro-benchmark. Always benchmark Chonk via bb prove --scheme chonk against pinned ivc-inputs.msgpack for real transaction flows. If a Chonk proving question seems to call for a micro-benchmark, the answer is still bb prove on a real flow.
Step 1: Get pinned IVC inputs
The real benchmark inputs are pinned to an S3 artifact keyed by a 16-character hash prefix. Download them:
barretenberg/cpp/scripts/chonk_inputs.sh download
This populates barretenberg/cpp/chonk-pinned-flows/<flow>/ivc-inputs.msgpack.
Available flows (typical):
ecdsar1+transfer_1_recursions+sponsored_fpcschnorr+deploy_tokenContract_with_registration+sponsored_fpcecdsar1+amm_add_liquidity_1_recursions+sponsored_fpcecdsar1+transfer_1_recursions+private_fpc- and more under
barretenberg/cpp/chonk-pinned-flows/after downloading
The pinned hash prefix is maintained in barretenberg/cpp/scripts/chonk-inputs.hash. The S3 URL is:
https://aztec-ci-artifacts.s3.us-east-2.amazonaws.com/protocol/bb-chonk-inputs-<hash>.tar.gz
To update the pinned inputs (after protocol changes that affect VKs):
barretenberg/cpp/scripts/chonk_inputs.sh update
Step 2: Build bb
cd barretenberg/cpp
cmake --preset clang20
cmake --build --preset clang20 --target bb
Build dir: build. To use a different native preset, build with that preset and set NATIVE_PRESET when running the benchmark script.
Step 3: Run the benchmark
Always set HARDWARE_CONCURRENCY=8 for local runs. The remote benchmarking machine uses 16, but local/shared machines should use 8. See /remote-bench for remote execution.
Native
For the standard local path, download the pinned inputs and use the same benchmark script CI uses:
barretenberg/cpp/scripts/chonk_inputs.sh download
HARDWARE_CONCURRENCY=8 barretenberg/cpp/scripts/ci_benchmark_ivc_flows.sh native
The benchmark script defaults to ecdsar1+transfer_0_recursions+sponsored_fpc. If a flow fails, the pinned inputs remain in barretenberg/cpp/chonk-pinned-flows/<flow>/ivc-inputs.msgpack; rerun the same case by passing the flow directory:
HARDWARE_CONCURRENCY=8 barretenberg/cpp/scripts/ci_benchmark_ivc_flows.sh native \
barretenberg/cpp/chonk-pinned-flows/<flow>
The CI benchmark also cross-checks the proof against the generated protocol VK artifacts under noir-projects/fnd/noir-protocol-circuits/target. That is a post-prove check, not part of the pinned input download.
For manual runs:
cd barretenberg/cpp
FLOW="schnorr+deploy_tokenContract_with_registration+sponsored_fpc"
OUTPUT_DIR="/tmp/chonk-bench-out"
mkdir -p $OUTPUT_DIR
HARDWARE_CONCURRENCY=8 ./build/bin/bb prove \
-o $OUTPUT_DIR \
--ivc_inputs_path chonk-pinned-flows/$FLOW/ivc-inputs.msgpack \
--scheme chonk \
-v \
--print_bench \
--bench_out_hierarchical $OUTPUT_DIR/benchmark_breakdown.json
WASM (via wasmtime)
Use the CI benchmark script with the WASM runtime:
barretenberg/cpp/scripts/chonk_inputs.sh download
HARDWARE_CONCURRENCY=8 barretenberg/cpp/scripts/ci_benchmark_ivc_flows.sh wasm
For manual runs:
Build the WASM binary with threads enabled:
cd barretenberg/cpp
cmake --preset wasm-threads
cmake --build --preset wasm-threads --target bb
Run via wasmtime (the scripts/wasmtime.sh wrapper sets standard flags):
cd barretenberg/cpp
FLOW="schnorr+deploy_tokenContract_with_registration+sponsored_fpc"
OUTPUT_DIR="/tmp/chonk-bench-wasm"
mkdir -p $OUTPUT_DIR
# Copy inputs to a working dir wasmtime can access
cp chonk-pinned-flows/$FLOW/ivc-inputs.msgpack $OUTPUT_DIR/
cd $OUTPUT_DIR
HARDWARE_CONCURRENCY=8 BB_BENCH=1 \
/path/to/barretenberg/cpp/scripts/wasmtime.sh \
/path/to/barretenberg/cpp/build-wasm-threads/bin/bb prove \
-o output \
--ivc_inputs_path ivc-inputs.msgpack \
--scheme chonk \
-v \
--print_bench \
--bench_out_hierarchical benchmark_breakdown.json
The wasmtime wrapper sets:
-Wthreads=y -Wshared-memory=y -Wexceptions=y -Sthreads=y— enable WASM threads, shared memory and exception handling--env HARDWARE_CONCURRENCY— thread count--env BB_BENCH— enable operation counting (requires configuring with-DENABLE_WASM_BENCH=ON; it is OFF by default in thewasm-threadspreset to keep the shipped wasm fast)--dir=$HOME/.bb-crs --dir=.— filesystem access for CRS and working directory
Local runs are noisy — average 3 runs
Non-dedicated machines have variable CPU load. Run the benchmark at least 3 times and average the results. Only the remote benchmarking machine (see /remote-bench skill) provides stable, isolated CPU for single-run measurements.
When iterating locally on profiling code changes, relative comparisons (before vs after your change) are stil
Установить benchmark-chonk в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл benchmark-chonk?
Run realistic Chonk (client IVC) benchmarks using pinned protocol inputs. Covers native and WASM proving, per-circuit breakdowns, BB_BENCH instrumentation, and profiling code augmentation. Use when asked to benchmark, profile, or measure Chonk proving performance.
Как установить скилл benchmark-chonk?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл benchmark-chonk запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic