#285
feat(benchmarks): add agent-oriented math and transform benchmark cases
Summary
Adds three small agent-oriented benchmark cases under enchmarks/agent/ exercising patterns that code agents commonly generate or repair.
Closes #8
Cases
- gcd: Euclidean GCD with integer loop and branch behavior.
- stats: Min, max, and sum over a fixed-size array.
- token-count: Delimiter token scan over a byte span.
Changes
| File | Description |
|---|---|
| enchmarks/agent/gcd.0 | GCD benchmark source |
| enchmarks/agent/stats.0 | Stats benchmark source |
| enchmarks/agent/token-count.0 | Token count benchmark source |
| scripts/bench.mts | Registered new cases in benchmark harness |
| docs/articles/benchmarks.md | Documented agent-oriented cases |
Verification
All three source files pass zero check on v0.1.4. Direct executable builds are blocked on Windows by the win32-x64 COFF backend limitation (BLD004), which existing benchmarks also hit. Recommended to verify full runtime correctness with pnpm run bench on a host with a complete direct backend.