Benchmark Runner

Run performance benchmarks with criterion. Compare against baselines and profile hotspots.

nwiizo 4bed6c0 744 B Updated

File contents

Run performance benchmarks on ccswarm.

Run Benchmarks

cargo build --release --workspace

# All benchmarks
cargo bench --workspace

# Specific benchmark
cargo bench -- "$ARGUMENTS"

# Save baseline for comparison
cargo bench -- --save-baseline before
# ... make changes ...
cargo bench -- --baseline before

Profile

cargo flamegraph --bench ${1:-orchestrator_bench}

Key Metrics

Area Target
Task delegation < 1ms
Full workflow < 100ms
Memory per agent < 10MB
Variance < 20%

Results in target/criterion/report/index.html.

nwiizo/ccswarm/tree/main/.agents/skills/benchmark-runner commit 4bed6c06c7

Frequently asked questions

npx skillmds@latest add nwiizo/benchmark-runner