#285

feat(benchmarks): add agent-oriented math and transform benchmark cases

Openharis-adminwants to merge intofrom

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

FileDescription
enchmarks/agent/gcd.0GCD benchmark source
enchmarks/agent/stats.0Stats benchmark source
enchmarks/agent/token-count.0Token count benchmark source
scripts/bench.mtsRegistered new cases in benchmark harness
docs/articles/benchmarks.mdDocumented 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.