From request to passing tests
Design a coding-agent benchmark that compares completion time, reliability, and cost under the same starting conditions.
A model can deliver the first response quickly and still leave the agent working for minutes. To compare routes on coding work, give both routes the same task and define the end before you look at a single result. An ordinary regression fix works well because it has a clear starting state and a test you can run on every attempt.
Turn a bug fix into a repeatable task
Imagine a parsing library that drops empty fields from a CSV row. Pin a commit where the bug exists, prepare a fixture that reproduces it, and define success as the regression test and surrounding parser suite passing. Give the agent a short issue description, the same tools, and a fixed wall-clock budget. Run the final test suite outside the agent so every patch gets graded the same way.
- Create a clean working copy and a fresh agent session for each attempt. Keep dependencies preinstalled at the same versions so installation time cannot dominate the run.
- Pin the model variant, harness, protocol, reasoning settings, and tool permissions. Record a run as warm or cold if you can observe the cache state. Treat unknown cache state as its own label.
- Alternate which route runs first during a session. Repeat across more than one time window if you plan to use the findings for a production decision.
- Save wall-clock time, number of model calls, tool execution time, retries, request costs, and the final test outcome. Keep failed attempts in the dataset.
Completion time and pass rate
| Route | Time to pass | Attempts passed |
|---|---|---|
| Route A | 70 s | 8 of 10 |
| Route B | 82 s | 9 of 10 |
Route A returned passing results sooner. Route B passed one more attempt.
Publish enough to interpret the result
Suppose Route A gets to passing tests in a median of 70 seconds across eight successful attempts out of ten. Route B takes 82 seconds across nine successes out of ten. Those example results suggest a trade-off to investigate. The ten-attempt sample gives little confidence about which route succeeds more often.
Report the test commit, harness version, model settings, number of runs, and conditions in the same place as the result. Include success count, median time for successful runs, timeout count, and cost per successful task. For that cost, add the cost of all attempts and divide by the number that passed. With the task and checks documented, your team can rerun the comparison when a provider, model, or agent changes.
Sources
- Inference speed simulation · Hostlinku