Skip to content

Factories > Measure & improve

Benchmarks

Compare quality and cost by benchmarking factory configurations in Warp Factories on fixed tasks before changing production.

Open in ChatGPT ↗
Ask ChatGPT about this page
Open in Claude ↗
Ask Claude about this page
Copied!

Warp Factories benchmarks compare configurations for an agent or Blueprint stage on the same fixed tasks. Test a model, harness, runner, or definition-branch change before you apply it to your factory.

This video shows how to compare benchmark results for quality and cost before changing a coding agent’s configuration.

A benchmark suite is a reusable collection of tasks with one evaluation target:

  • Agent - Run each task as the selected factory agent.
  • Stage - For a factory with a Blueprint, enter the selected stage directly and stop when it completes, rather than continuing through the rest of the workflow.

Each task has a prompt and “Correctness criteria,” which tell the built-in Correctness Scorer what a successful trial must do. A trial executes one task under one configuration. Repetitions create additional trials.

When you launch a suite, choose the configurations, Scorers, and repetitions to compare. Warp runs the trials, then scores trials that reach a terminal state. A blocked trial remains Blocked, but Warp can score the evidence it produced; each Scorer decides whether that evidence satisfies its criteria. The run keeps those inputs, so later changes to the suite do not change its past results.

The Runs tab for a benchmark suite, with task, configuration, run time, and cost columns.

The Runs tab for a benchmark suite.

Use separate suites for focused questions:

  • Factory default - Compare models and runners to choose the default configuration for a coding agent.
  • Frontend changes - Compare configurations on representative frontend tasks before applying one to that workflow.

To use Benchmarks, you need access to a factory and permission to edit its benchmarks and launch runs. Write representative tasks yourself, or use completed runs to capture real work.

This video shows how to turn your team’s coding tasks into a reusable benchmark suite.

  1. In the Warp Factories web app, open your factory, click Benchmarks, then click New.

    The Benchmarks page showing saved benchmark suites, a search field, and the New button.

    The Benchmarks page for a factory.

  2. Enter a name and optional description. Choose the agent to evaluate, or choose Stage and select a Blueprint stage.

    The benchmark editor showing a documentation-link review suite, a selected triage agent, and the Add task action.

    The benchmark editor with a selected agent.

  3. Click Add task. Warp saves the benchmark, then opens task setup.

  4. Click Start from scratch instead to write a task.

    The Add task pane with a run search field, the list of completed runs, and the Start from scratch instead option.

    The task source picker.

  5. Enter a unique task title, prompt, and “Correctness criteria.” Optionally pin the task’s repositories to exact commits. Click Save.

    The task editor with fields for a title, prompt, correctness criteria, and pinned repositories.

    The task editor for a benchmark suite.

  6. Click Run. Under “Setups,” configure each comparison independently:

    • Leave “Factory branch” blank to use production with the harness, model or authorized custom router, and runner you choose.
    • Enter a definition branch to use that branch’s full definition, including its harness, model, runner, and workers. Manual execution overrides do not combine with a branch selection.
    • Click Add setup to add another configuration. For example, compare production with a branch that changes the review agent’s instructions.
  7. Select additional Scorers and set “Repetitions.” Correctness is always included. The dialog shows the number of trials created. More trials and Scorers increase the run’s cost.

  8. For manual Warp-hosted setups, choose a compatible team-owned secret under “Harness credentials” if your harness requires credentials. Setups using the same harness share one selected credential. Self-hosted configurations use credentials from their worker environment.

  9. Click Run benchmark. The benchmark page shows its status and scored trials. You can cancel a running or scoring benchmark.

Repeat launches can reuse a previous run’s recorded settings. Review the selections before launching: a model, runner, or credential may no longer be available, and Scorer eligibility is checked against the current factory.

In the suite’s configuration, use “Correctness scorer” to override “Judge model” or “Runner.” These settings control the judge that evaluates task results, not the agent under test. Click Reset to default beside an override to use the inherited setting again. Definitions as code use correctnessScorer.

For a repository-backed factory definition, open a completed factory run’s menu and click Add to benchmark. Choose an existing suite, then click Add task. The foreman authors a benchmark task for review in the definition repository, rather than inserting it immediately. Review its prompt, correctness criteria, and starting commits before merging.

Alternatively, in a suite’s Add task picker, select completed runs and click Add task to start the same authoring workflow.

After the run completes, review the result as a comparison, not as a universal model ranking.

A completed benchmark result showing the overall recommendation, additional recommendations, total cost, and a correctness versus average cost chart.

A completed benchmark result and comparison chart.

  • Overall recommendation - Identifies the highest-quality configuration when at least two configurations have comparable results.
  • Additional recommendations - Highlight the most efficient and lowest-cost configurations when the result supports those comparisons.
  • Comparison chart - Compare the selected result dimensions across configurations.
  • Overall table - Compare each Scorer’s average and the combined Overall value. Expand a configuration, task, and repetition to inspect its individual trials.
  • Scorer grids - Show each task’s results across configurations for a selected Scorer.

Expanded benchmark results showing trial run duration, cost, and scores for a configuration.

Expanded trial results for a configuration.

The run’s “Total cost” includes trials and Scorer usage. Reported costs combine billed Warp inference, compute, and platform usage with available estimates for externally billed inference. Use them to compare configurations, not reconcile invoices; historical estimates and missing external costs can affect the comparison. See charges and estimates.

Read averages and totals as different measurements:

  • Configuration averages - Average cost and duration use the final attempts of trials whose execution succeeded, including trials that failed Correctness or have no score yet.
  • Totals - Trial and configuration cost totals include retries and failed work. A trial’s total duration also includes its retry attempts. “Run time” is not billable active agent time.
  • Benchmark elapsed time - Includes scoring, unlike trial execution time.
  • Missing measurements - Unavailable usage or scores are not zero.

For a failed or cancelled benchmark, only scores recorded before the run stopped count toward its results.

An execution failure means the trial did not finish its work. A scoring error means a judge could not return a result; it is not a failing quality verdict. Check coverage warnings before comparing configurations, because plotted scores can be based on incomplete results.

For a completed benchmark with finished work that remains unscored, open the run’s three-dot menu next to Run and click Rescore missing scores. Click Confirm rescore to retry scoring without rerunning completed trials.

Change one configuration at a time. If the evidence supports a candidate, update the agent’s model or runner in the factory dashboard, or submit the change through your factory definition. Keep the relevant Scorers active, then compare later production runs with the baseline you recorded before the change.

For version-controlled factories, define reusable suites in benchmarks/<suite-slug>/suite.yaml and their tasks in benchmarks/<suite-slug>/tasks/<task-slug>.yaml. See benchmark suite files.

To manage suites, tasks, runs, trials, and results programmatically, use the benchmark API reference.