benchmarking
Installation
SKILL.md
Micro-benchmarking
Encode process, not target numbers. Numbers change; the workflow stays fixed.
Harness setup
Measuring a live page / tab / paint (DOM, RSC, navigation)?
├── Yes → Available browser tools + CDP is enough. Do not copy a µs harness.
│ Round 0 = nodes, images, TTFB, nav ms, heap. Report ms, not µs/op.
└── No (pure function / mapper / transform)
├── Harness exists in repo? → use tools/benchmark-*.mjs or scripts/bench/*
└── No → copy from this skill's `scripts/` folder
benchmark-harness.mjs + benchmark-run-all.mjs
add package.json script: "benchmark": "bun tools/benchmark-run-all.mjs"