| name | bench |
| description | Run benchmarks and compare against performance budgets |
| argument-hint | ["crate-name"] |
| allowed-tools | Bash, Read |
Run criterion benchmarks for Scalpel.
If an argument is provided:
cargo bench -p scalpel-$ARGUMENTS 2>&1
If no argument, run all benchmarks:
cargo bench --all 2>&1
After benchmarks complete, compare results against the performance budgets in CLAUDE.md:
- Event write: <100ns
- Graph build (100K nodes): <5s
- Reachability (100K nodes): <200ms
- Static analysis (100K LOC): <10s
Flag any benchmark that exceeds its budget as a REGRESSION.