pinecallDocs
Guides / Benchmark your agent

Benchmark your agent

One command rings your callers, judges every call and writes a report: two bars, every model, every call to play back.

One command rings your callers on your agent, out loud, has a judge read every call, and writes a report you can open or publish: the agent held to two bars you set, every model you compared, and every call to play back. Use it before you ship an agent, before you change its model, and in CI.

How it works#

pinecall simulate places spoken calls: a model plays each of the agent's personas, a voice speaks its lines, and the agent hears and answers. With --report the calls are placed as one comparison, each is judged as it ends, and the benchmark is written when the last one does.

Terminal
pinecall simulate --persona books-a-visit --persona hurried --voice --repeats 5 --report
You write It means
--persona, again for each the callers; each one's expects is what a completed call means
--repeats 5 every caller rings five times: the report shows each round apart
--against llm=… or realtime=…, again for each the agent on another model for these calls alone; left out, the agent as it is
--report [dir] write the benchmark into ./benchmark, or the folder named; turns --judge on
--floor 0.9 · --ceiling 1.5 the two bars: the share of calls completed, the middle reply in seconds

A caller is judged against its expects by the expected-outcome judge, which is off until the agent names it among its judges. A benchmark of callers that expect nothing says "nobody judged a call".

The report#

A folder: index.html is the page, report.json every number of it, calls/ each call's recording. It is static: open it from the disk, or put it on any web server.

Part What it tells you
The verdict whether the agent clears both bars; with several models, the cheapest per completed call of those that do
A row a setup completed calls with the range that share plausibly sits in after that many calls, the reply (middle and 90th), what a completed call cost
How the calls went lines nobody answered, turns the agent heard that nobody said, replies cut by the room, lines talked over, words heard wrong
Judges what each judge answered, a setup a row
Round by round every caller under every setup, each round apart: how far one run moves from the next
Calls that failed each with its judge's reason
Calls not counted a vendor that refused or failed the call, a call the platform lost, a simulated caller whose own voice broke: listed, and in no number
Every call its recording, its lines, each tool it called and what the tool answered

19 of 20 · 95% is printed with 76%–99%: twenty calls cannot tell a 95% from an 85%. Ring each caller more times before you trust a difference between two rows.

A gate in CI#

--gate makes the command exit 1 when no setup clears both bars. --baseline holds each setup against an earlier report.json: it regressed when its share fell by more than that report's own rounds moved among themselves, and with --gate that fails the build too.

Terminal
pinecall simulate --persona books-a-visit --persona hurried --voice --repeats 5 \
  --report reports/today --baseline reports/main/report.json --gate

Keep reports/main/report.json from the last run of your main branch. --json prints report.json in place of the table. The job holds the agent itself, as Testing in CI shows.

A room behind the caller#

A benchmark on a clean line says what the agent does when it hears its caller well. --condition places the same callers under the same setups again on another line, and reads each against the first:

Terminal
pinecall simulate --persona books-a-visit --persona hurried --voice --repeats 3 --report \
  --condition clean \
  --condition television-20:ambience=television,background-noise=20 \
  --condition bad-line:packet-loss=0.05,delay=200
You write It means
--condition clean a name alone: the line as the callers have it. The first one named is the line the others are read against
--condition television-20:ambience=television,background-noise=20 a television behind the caller all through the call, 20 dB under its voice
ambience, background-noise, packet-loss, delay, jitter, rate, via what a condition may change, each as simulate's own flag of that name
--gate-under television-20 exit 1 unless one setup clears both bars under that condition too; turns --gate on

Each condition is a comparison of its own, placed after the one before it ended, so that no condition is played under another's load. The table and the verdict stay the first line's. The report adds "Under each condition": a row a setup and a column a line, each cell the share completed there, marked by whether it clears both bars, with what that line moved most against the first: turns the agent heard that nobody said, replies the room cut, a call's length. The verdict says which setups clear both bars under every condition.

A voice in the room (a television, another person) is the hard case: an agent may take it for the caller, and a call that completes may still have run to the ten-minute ceiling answering the television. Street noise at the same level usually changes nothing.

A condition with a room costs more than the same calls on a clean line: calls that the room keeps going run longer, and every turn heard that nobody said is a turn the model answered.

Reports of runs already made#

pinecall benchmark writes the report of comparisons simulate already played. Several named together are one table: a caller rung again under the same setup is another round of it.

Terminal
pinecall benchmark cmp_4f1c2a9be07d cmp_91aa03c7d2e1 --out reports/november
pinecall benchmark --condition clean:cmp_4f1c2a9be07d --condition television-20:cmp_91aa03c7d2e1

With --condition, each is a name and the comparisons played under it, the first being the line the others are read against.

In the console#

A comparison opened in the console's Simulations is the same benchmark, with the same numbers: the CLI and the console make them with one implementation, so a row never reads one way in the terminal and another on the screen.

On the screen What it is
The two bars 90% and 1.5 s until you move them; the verdict follows as you type
A card a setup completed calls with their range, the reply (middle, 90th, slowest), what a completed call cost, how it heard its callers
Every task against every setup each run a dot that opens its call
Judges, round by round a setup a column
Calls that failed, calls not counted each with its reason, each a row that opens the call: its recording, its lines, its judges
Download report.json the file pinecall benchmark writes, with each call's lines and no recording beside it

Other comparisons of the same agent are offered over the board: tick one and the two are read as one table, as pinecall benchmark cmp_… cmp_… reads them. Conditions (--condition) are read by the CLI alone.

Limits#

Spoken simulations at once the org's limit (Limits & provider keys); the calls past it wait their turn
Calls in one comparison the org's limit; a new account's sandbox places 10
A simulated call's length ten minutes
The recording Ogg Opus: Chrome, Edge and Firefox play it; a browser that does not says so, and the lines are still read

Next steps#