By Oliver · AI Architect, BuildAClaw · November 24, 2026 · 9 min read
How to Build an AI Agent That Compares Gemini, GPT, and Fable Benchmarks Against Your Real Business Tasks
The leaderboard winner lost on 4 of our 7 real workflows. Here's how to build a local benchmarking agent that tells you which model actually earns its tokens in your business.
I ran the same 30 customer-email tasks through Gemini 2.5 Pro, GPT-5.5, and Fable 5.1. The model that ranks highest on public leaderboards came in second on our email drafting and last on our invoice extraction. The cheapest model beat it on both when we scored against what our team actually approves and sends.
That's the problem with public benchmarks. They test math puzzles, coding challenges, and trivia. Your business runs on messy PDFs, half-written Slack messages, and a tone-of-voice your customers recognize. If you pick a model from a headline number, you're guessing. This guide walks through building an agent that stops the guessing: it runs your real tasks against Gemini, GPT, and Fable on a schedule, scores the outputs, and tells you which model to route each job to.
What we saw across 7 workflows (210 total task runs):
- 4 of 7 workflows had a different winner than the public leaderboard order
- 3.1x cost spread between the cheapest and priciest model for equal-quality output on simple tasks
- 38 minutes to run the full suite on a Mac Mini M4, unattended
Why Public Benchmarks Fail Your Business
Benchmarks answer a general question: "Which model is smartest on average?" You need a specific one: "Which model drafts our refund replies in our voice, for the least money, with the fewest rewrites?" Those questions have different answers.
Three things break the link between a leaderboard and your results:
- Format fidelity. Your CRM wants strict JSON with 14 fields. A model that's brilliant at reasoning but adds a friendly sentence before the JSON breaks your pipeline.
- Domain voice. A model tuned for polished general prose may sound nothing like your brand. Reviewers notice within two sentences.
- Cost per accepted output. A model that is 8% better but needs 2.5x the tokens may cost more per approved result than a cheaper one with a retry.
This shows up constantly in the community. In our lead research, 15 of 138 users flagged cost as a pain point, and one asked what they'd spend "after the initial setup" on tokens and API calls. You can't answer that from a leaderboard. You answer it by measuring your own workload.
Key insight: Treat public benchmarks as a shortlist filter, not a purchasing decision. They tell you which 3 models are worth testing. Your own task suite tells you which one to deploy.
Step 1: Build Your Golden Task Set From Real Work
The whole system rests on the test set. Garbage in, garbage rankings. Pull tasks from where the work actually happens, not from imagination.
For each workflow you care about, collect 20 to 30 real examples with the human-approved answer attached:
- Email replies: inbound message plus the reply your team actually sent
- Invoice or document extraction: PDF text plus the correct field values from your accounting system
- Support triage: ticket text plus the category and priority a human assigned
- Summaries: meeting transcripts plus the notes someone actually circulated
Store each case as a small JSON file: input, reference_output, task_type, and scoring_rules. Keep the set in a local folder on your Mac Mini. Customer data stays on your hardware, which matters for anything with names, amounts, or contracts.
Include the ugly cases on purpose. I seed every set with 5 edge cases: a forwarded thread with six replies, a scanned invoice with a typo, an angry all-caps message. Models separate on edge cases, not easy ones. Most of them tie on the clean examples.
Step 2: Wire Up a Model Router With One Interface
Your agent needs to call Gemini 2.5 Pro, GPT-5.5, and Fable 5.1 through the same function so the only variable is the model. Write a thin adapter layer with one signature: run(model, prompt, config) → {text, tokens_in, tokens_out, latency_ms, cost}.
Rules I follow to keep the comparison fair:
- Same prompt for all models on the first pass. Then run a second pass where each model gets a prompt tuned to its quirks. The gap between the two passes is itself useful data.
- Temperature fixed (we use 0.2) and each task run 3 times to measure consistency, not just peak quality.
- Log everything: tokens, latency, and dollar cost per call into a local SQLite file.
- Pin model versions where the provider allows it, and record the version string with every result.
If you've already built routing logic, this layer is a direct extension. I covered the routing side in how to build an AI agent that picks the right frontier model per job. The benchmark agent feeds that router its decisions.
Want a local baseline too? Add Llama 4 Scout or Gemma 4 running on the same Mac Mini to the same harness. Free per-token cost changes the math for high-volume, low-stakes tasks like tagging and routing.
Step 3: Score Outputs Three Ways
One score is never enough. I use three layers, ordered from cheapest and most objective to most subjective.
Layer 1: Deterministic checks
Code-based tests that need no AI. Is the JSON valid? Do all 14 fields exist? Does the extracted total match the reference to the cent? Is the reply under 150 words? These checks are fast, free, and brutally honest. On our invoice task, deterministic scoring alone eliminated one model from contention.
Layer 2: LLM-as-judge
For tone, completeness, and accuracy of prose, use a judge model with a rubric. Two rules keep it honest. First, never let a model judge its own output; use a different provider as the judge. Second, hide which model produced each answer and shuffle the order, because judges favor the first answer they see and the longest one.
Layer 3: Human spot-check
Pull 10% of results at random and have a person rate them. If the judge and the human disagree on more than 1 in 5, fix your rubric before you trust any ranking. This takes about 15 minutes per run and protects you from a confidently wrong leaderboard of your own.
Our scoring weights (adjust to your business):
- 40% correctness against the reference or deterministic checks
- 25% consistency across the 3 repeat runs
- 20% cost per accepted output
- 15% latency, weighted higher for customer-facing chat
Step 4: Turn Results Into a Routing Table
The output you want isn't a single winner. It's a table that maps each task type to a model. Here's the shape of the one we generated from our own suite. These numbers are from our test set and will differ for yours.
| Task Type | Best Quality | Best Value | Our Pick |
|---|---|---|---|
| Customer email drafts | Fable 5.1 | Gemini 2.5 Pro | Fable 5.1 |
| Invoice field extraction | GPT-5.5 | Gemini 2.5 Pro | Gemini 2.5 Pro |
| Ticket triage | Tie | Gemma 4 (local) | Gemma 4 (local) |
| Meeting summaries | Fable 5.1 | GPT-5.5 | GPT-5.5 |
| Multi-step research | GPT-5.5 | GPT-5.5 | GPT-5.5 |
Look at what the table says. No single model won more than 2 of the 5 "Our Pick" slots. A local model took the highest-volume job. That's the real value of building this agent: it replaces brand loyalty with evidence, and it often shows you that a $0 local model handles the boring 60% of your volume.
Have your agent write the routing table to a JSON file your production agents read at runtime. When a new model ships, you rerun the suite and the routing table updates itself. No meetings required.
Step 5: Run It on a Schedule and Catch Silent Regressions
Models change under you. A provider updates a version, and the tone on your refund replies shifts, or JSON output gets chattier. You won't notice until a customer does. Scheduling fixes that.
- Weekly smoke test: 10 cases per workflow, about 6 minutes, flags any score drop over 5 points.
- Full suite on new releases: triggered when a provider announces a model, about 38 minutes on our Mac Mini M4.
- Failure feedback loop: every time a human edits or rejects an agent output in production, the agent adds that case to the golden set. We add roughly 5 cases a month this way, and the suite gets sharper each time.
A Mac Mini M4 is a good fit for this because it sits on 24/7 for pennies of electricity and holds your private test data. The same always-on box can power your other automations. We used the same pattern in our white-hat SEO workflow with a local AI worker, where a scheduled local agent does the repetitive work and a human reviews the exceptions.
Warning: Don't let the benchmark agent auto-switch production models without a guardrail. Require a minimum margin (we use 5 points) and a human approval step for any customer-facing workflow. Flip-flopping between models on noise is worse than staying put.
Common Mistakes That Wreck the Comparison
- Testing 5 cases and declaring a winner. At that size, one lucky answer decides everything. Use 20+ per workflow.
- Letting the judge see model names. Brand bias is real. Blind every comparison.
- Ignoring cost. The "best" model that costs 3x more per accepted output is rarely the right call for high-volume work.
- Optimizing prompts for one model only. You'll accidentally rig the result. Tune all contenders equally or tune none.
- Treating the result as permanent. The ranking has a shelf life of weeks, not years.
Frequently Asked Questions
Why don't public AI benchmarks predict my business results?
Public benchmarks measure generic tasks like math, coding puzzles, and trivia. Your business runs on specific formats, tone, and edge cases. In our tests, the model ranking on our own tasks differed from the public leaderboard order on 4 of 7 workflow types.
How many test cases do I need to compare models fairly?
Start with 20 to 30 real tasks per workflow, pulled from your actual inbox, tickets, or documents. That's enough to separate a clear winner from a tie. Add about 5 new cases every time the agent fails in production.
Can a Mac Mini M4 run the benchmark agent?
Yes. The orchestration, test set, scoring, and results database all run locally. Only the model calls to Gemini, GPT, and Fable leave the machine, and you can add local models like Llama 4 Scout or Gemma 4 to the same harness for a zero-cost baseline.
How often should I re-run the comparison?
Re-run the full suite whenever a provider ships a new model version, and run a lightweight 10-case smoke test weekly. Model updates change behavior quietly, and a weekly check catches regressions before your customers do.
Stop Guessing Which Model to Pay For
BuildAClaw sets up local AI agents on your own Mac Mini M4, including a benchmarking agent that scores Gemini, GPT, and Fable on your real tasks and routes each job to the model that earns its cost. No cloud lock-in, your data stays on your hardware, and it runs autonomously.
Schedule a Free Strategy Call →