A stronger model answers better and costs more, and a cheaper model is faster but can miss the point. One test run with the same prompts through both models gives you three numbers to decide with: the pass count, the cost and the latency.
Before you start
You need an agent that can switch models and a golden prompt set of ten prompts with expected answers. Keep the prompts, the tools and the instructions identical for both runs, or the comparison means nothing.
Run the same ten prompts through each model
Run the ten prompts through the first model and record the pass count, the total cost and the total time. Then run the same ten prompts through the second model and record the same three numbers. Do not change the prompts or the instructions between runs.
Compare the three numbers and pick on the job
Compare the pass counts first: a cheaper model that fails two prompts the stronger one passes is not cheaper for that job. Then compare cost and latency. Pick the cheaper model only when the pass counts match, and re-run the comparison after any model update.
Worked example: Two models for a fictional support agent
Northwind Support is a fictional help desk. Its agent was tested on two models with the same ten prompts. The table shows the result.
| Model | Prompts passed | Cost in dollars | Total time in seconds |
|---|---|---|---|
| Small fast model | 9 of 10 | 0.42 | 38 |
| Larger model | 10 of 10 | 1.85 | 74 |
Expected result (UNTESTED): the larger model passes 10 of 10 prompts at 1.85 dollars in 74 seconds, while the smaller model passes 9 of 10 at 0.42 dollars in 38 seconds. We did not run this comparison on a live agent, so the numbers are a worked example of the method, not a measured result.
Limits
Ten prompts is a small sample, and a model update can change the result, so re-run the comparison monthly. Cost and latency also depend on the provider and the time of day, so record the date with the numbers.
