Skip to content

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

Open
amlhive-tech wants to merge 1 commit into
vercel-labs:mainfrom
amlhive-tech:agent-benchmarks
Open

feat(benchmarks): add agent-oriented math and transform benchmark cases#282
amlhive-tech wants to merge 1 commit into
vercel-labs:mainfrom
amlhive-tech:agent-benchmarks

Conversation

@amlhive-tech
Copy link
Copy Markdown

Summary

Adds three small agent-oriented benchmark cases under \�enchmarks/agent/\ exercising patterns that code agents commonly generate or repair, as requested in issue #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 (space-delimited)

Changes

  • \�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 section

Verification

These files follow the same syntax patterns as existing \�enchmarks/zero/\ and \�enchmarks/rosetta/\ cases but have not been locally built/tested (Windows host without the new-syntax-compatible build). Recommended to verify locally with:

sh pnpm run bench

Closes #8

Adds three small benchmark cases under benchmarks/agent/ exercising
patterns that code agents commonly generate or repair:

- 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

Also registers them in the benchmark harness (scripts/bench.mts)
and documents them in the benchmarks reference (docs/articles/benchmarks.md).

Closes vercel-labs#8
@vercel
Copy link
Copy Markdown

vercel Bot commented May 26, 2026

Someone is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add small agent-oriented math and transform benchmark cases

1 participant