# Bench

> Run performance benchmarks for the registry. Use when testing performance, measuring latency, checking throughput, running the benchmark suite, or analyzing routing/memory/dispatch performance. Use when this capability is needed.

- Skill: `tomevault-io/bench` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/bench`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/bench/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/bench

---


# Benchmark Runner

Run performance benchmarks using Bun's native test runner.

## Usage

```text
/bench              - Run all benchmarks
/bench routing      - Run routing benchmarks
/bench memory       - Run memory benchmarks
/bench dispatch     - Run dispatch benchmarks
/bench cold-start   - Run cold start benchmarks
/bench federation   - Run federation matrix benchmarks
/bench redis        - Run Redis performance benchmarks
/bench --quick      - Quick run with fewer iterations
```

## Performance Targets (SLA)

| Target | Value | Description |
|--------|-------|-------------|
| Dispatch latency | <0.03ms | URLPattern match + param extraction |
| Route test | <0.01ms | URLPattern.test() only |
| P99 latency | 10.8ms | 99th percentile request cycle |
| Bundle size | 9.64KB | Minified standalone binary |
| Heap reduction | -14% | vs Node.js baseline |

## Additional Flags

```text
/bench --json           - Output JSON for CI integration
/bench --compare <file> - Compare against baseline file
/bench --save <file>    - Save results as baseline
/bench integration      - Run integration benchmarks
```

## Examples

```bash
# Run full benchmark suite
bun run bench

# Check routing performance
/bench routing

# Quick validation
/bench --quick

# Save baseline for CI
/bench --save benchmarks/baseline.json

# Compare against baseline
/bench --compare benchmarks/baseline.json
```

## Performance Tiers

| Tier | Threshold | Indicator |
|------|-----------|-----------|
| EXCELLENT | <80% of target | Green |
| GOOD | <100% of target | Blue |
| ACCEPTABLE | <120% of target | Yellow |
| POOR | >120% of target | Red |

## Related Skills

- `/test` - Run test suites
- `/metrics` - View system metrics
- `/dev` - Development server

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/brendadeeznuts1111) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-13 -->

