Skip to content

Self-hosting and security

Benchmarks

Run the same tasks on several models, score the answers with checks, a judge, and your own stars, and compare speed, tokens, and cost.

  • 12 min read
  • 13 sections

Benchmarks ​

Benchmarks answer a plain question: which model does this job best? You write a set of tasks once, run it on the models you choose, and read the results side by side. Each model is measured the same way: how fast it answered, how many tokens it used, what it cost, whether your checks passed, and how good the answer was.

Open Settings › Usage and choose Benchmarks in the source switch. For the numbers Octant already records about your everyday turns, see Turn health.

A run spends real provider money. Read Costs before your first one.

The words ​

TermMeaning
SuiteA named set of cases saved on this Mac, with an optional judge and rubric.
CaseOne task: a prompt case (a Chat prompt) or a Code case (a task run on a repository). A case has checks, and may have a reference answer and a rubric line.
ContenderA provider account and a model. Models on your own endpoints are contenders like any other.
RunOne execution of a suite on the contenders you pick, with 1 to 5 repetitions.
CellOne case, by one contender, in one repetition. A cell is an ordinary new thread with one turn.

Cells are ordinary threads, but they live in a dedicated Benchmarks Project. They are archived when the run ends and stay off your boards. No score can mark a thread Done. Scores are readings only.

Build a suite ​

Choose New suite. Give it a Name and a Description, then add cases with Add prompt case or Add Code case.

Every case has a Title, a Prompt, an optional Reference answer, and an optional Rubric line. A Code case also names a Code Project and a Branch or tag. Choose Add check to add checks to a case. A suite needs a name and at least one case. When a case or check is not valid, the editor names it in a sentence and does not save.

Checks ​

Checks are automatic and deterministic. A case's check score is the share of its checks that passed.

CheckOnPasses when
Contains textPrompt caseThe answer contains the text. Match case makes it exact about capitals.
Does not contain textPrompt caseThe answer does not contain the text.
Matches patternPrompt caseA regular expression matches. Pick its flags, or No flags.
Equals textPrompt caseThe answer is exactly the text. Ignore surrounding space trims it first.
Is valid JSONPrompt caseThe whole answer parses as JSON.
Command exits with zeroCode caseA command you write, such as the test command, exits with zero. It has a time limit in seconds.
Changes at most this many filesCode caseThe turn changed no more files than the count you set.

A pattern that takes too long to answer fails its check instead of stalling Octant. The pattern sees at most the first 50,000 characters of an answer.

A judge ​

A suite can add a judge. Turn on Score each answer with a judge model, pick a Judge model, and write a Judge rubric. The judge is another model that reads each answer and gives it a score from 1 to 10 with a short reason of at most 512 characters.

  • The judge is blind. It never learns which contender wrote an answer.
  • It gets the case prompt, your reference answer if there is one, and the candidate's answer. For a Code case it gets a summary of the changed files and the check results instead of an answer.
  • The answer is passed to the judge as quoted data. The judge is told that nothing inside the quote is an instruction, so an answer cannot talk the judge into a higher score.
  • The same judge scores every contender in a run.
  • If the judge fails, or its reply is not a valid score, the cell shows a failed judgement with a reason, never a guessed score.

Import and export ​

Export as JSON on a suite's row saves the suite as a file: its name, description, cases, checks, judge, and rubric. Import suite reads such a file, or JSON you paste, and checks it against the same rules as the editor. A file that is not valid is refused with one sentence that says why.

A suite from someone else can carry commands. Octant shows those commands before a run can start. See Confirm commands.

Start a run ​

Pick a suite and open the Run builder.

  1. Contenders. Tick the models to compete. The list is the same one the composer offers, grouped by provider account. With no ready account, sign in to a provider first.
  2. Repetitions. 1 to 5. More repetitions show how much a model varies from run to run. Repetitions run first, so an early stop still compares every contender.
  3. Budget. Set a Token budget, a Cost budget, US dollars, or both. You must set one. See Costs.
  4. Execution level. Shown only for a suite with Code cases. See Code cases.
  5. Estimate. Before you start, Octant shows an estimated cost: the number of cells times each model's mean cost per turn from your earlier turns. A model with no history cannot be priced and is named. With nothing to go on, it reads No estimate yet. If the estimate is above the cost budget, it says the run may stop early. A run holds at most 2,000 cells.
  6. Choose Start run.

The start button explains what is missing, such as a budget or a contender.

Confirm commands ​

If any case runs a command, the builder lists every command, with its case, under This suite runs these commands after each Code task. Read them, then tick I've read these commands. They run on this Mac, confined to each cell's copy, with no network. Until you do, Start run stays off. The tick is tied to the suite's current version. If you edit the suite afterward, you must read the commands again.

While a run is going ​

The Live grid shows every case against every contender. Each cell is an icon and a word, never colour alone: Queued, Running, Answered, Failed, Blocked on approval, Cancelled, or Skipped, budget reached. It also shows each cell's time and tokens. The grid refreshes every three seconds while the run is going, and stops when the run ends or you leave the page.

A status line counts how many cells have settled. When the run ends, an End reason line says why, for example Finished, Cancelled, or Budget reached.

Choose Cancel run to stop it. Cells that already finished keep their results.

Octant runs at most two cells at once on one provider account and four on the whole host. A turn that takes longer than 30 minutes is stopped and counted as failed.

The leaderboard ​

The Leaderboard has one row per contender, with the columns Check pass rate, Judge score, mean stars, First token, typical, First token, slow, Speed, typical, Speed, fast, Tokens, cost, Tool failures, and Failures. Choose a column to sort. A figure that nobody gave sorts last, and reads as a dash, never zero. Choose a row to see that contender's cells.

Above the table, a headline names the Best pass rate, the Fastest first token, and the Cheapest. Pass rate, speed, and cost also draw as ranked bars. When the suite has a judge, a line reads Judge: 12 turns · 31k tokens · $0.42, for example. That is the judge's own cost. It is shown apart from the contenders, and never counted in a contender's row.

The three scores, checks, judge, and stars, sit side by side. Octant never adds them into one hidden number.

Read the results ​

Case compare puts one case's answers next to each other. Pick a case, and each contender's answer appears with its time, first token, speed, tokens, cost, check results, and judge score and reason.

  • Open thread on a cell goes to the thread that wrote the answer. Answers are read from the thread, not copied into the run.
  • For a Code case, compare shows the figures and checks, and you open the thread to read the work it did.
  • Rate each answered cell from 1 to 5 stars. Add an optional note, then Save rating. Rating again shows Replace rating.

Stars are your own judgement. The leaderboard shows their mean.

History and export ​

Under Runs you see the suite's runs, newest first, with their status and how many cells settled. History compares the same suite across runs, one row for each contender in each run, so you can set a new version of a model against the old one. It shows up to the latest 50 runs.

Each run has Export as JSON and Export as CSV.

The JSON export has:

  • the run's status, its budget and contenders, and a snapshot of its cases;
  • every cell, with its state, check results, judge score and reason, rating, and turn figures;
  • the leaderboard and the judge's cost.

The CSV export has one row per cell. Spreadsheet formulas are neutralised: a field that starts with =, +, -, or @ gets a leading apostrophe so a spreadsheet reads it as text.

Neither export has the answers. Answers stay in the cell threads. Be aware that an export may still quote text. Case prompts and reference answers are in the cases snapshot. Judge reasons, check details, and your star notes can quote an answer. Read an export before you share it.

Use benchmark results to choose a model ​

Set a Passing threshold on the suite (80% by default). Octant looks at the newest finished result for each model and considers models tested on at least five different cases. A case attempt passes when it answers and all its checks pass. The ranking puts the lowest cost per pass first, then the typical run time. Models that did not report a complete cost come last. Suggestions show the run date and are marked stale after 90 days. If a run tested a model at several effort levels, the suggestion shows the best passing level and uses it when you accept.

In Model roles, choose Suggest from my benchmarks and pick a suite. To see a hint in a thread’s model picker, give the suite a Suggestion Project and matching Chat, Work or Code kind. The hint compares models ranked in that suite and can be dismissed for the Project. Neither feature changes a model until you accept.

Purge a run ​

Purge on a run asks first. It cannot be undone. Purging:

  • erases the run's threads, including the judge's threads;
  • removes the worktrees a Code run made, and the benchmark/... branches in the Code Project that held them, along with any uncommitted work inside them;
  • takes the run's figures with it.

If any thread fails to purge, Octant keeps the run, so you can try again. Deleting a suite keeps its finished runs until you purge them. They appear under Runs of deleted suites.

Code cases and safety ​

A Code case runs a coding task on a repository, so it is the part of Benchmarks that needs the most care.

  • A worktree for each cell. Every cell runs in its own managed worktree and its own benchmark/... branch. The worktree is made from a commit pinned when the run starts, so every cell of a case starts from the same files, even if the branch moves while the run is going. Nothing is pushed, and Octant proposes no pull request.
  • Check commands are sandboxed. A Command exits with zero check runs in the cell's worktree after the turn. It has no network and no cloud, SSH, or Google credentials. It gets a fresh private folder as its temporary folder and home, removed afterward. A command that cannot be launched in the sandbox fails its check. It is never run without it. The limit is the time you set, and at most 10 minutes. Only a short slice of its output is kept, redacted.
  • The execution level is clamped. The level you pick is a ceiling. The cell uses the lower of your pick and the level the Project's new threads start at. Auto and Accept edits are available. Full access is offered only where the Project already allows it, and a run that asks for more than the Project holds is refused whole, before any cell runs. A Plan Project asks first.
  • Approvals do not hang a run. If a cell waits on an approval or a question for 10 minutes, Octant interrupts it and marks the cell Blocked on approval. A turn that ends first while an approval was still waiting is marked the same way. It counts as a failure, with that reason.
  • Reach. Starting a run checks that the Code Project exists and that this window can reach it, and that the branch or tag resolves.

Costs ​

  • A run spends real provider money through your accounts, or counts against your plan, like any other turn. Your Project spend ceilings apply to the Benchmarks Project too.
  • The judge's cost counts toward the budget. The estimate and the budget check include each cell's judging.
  • The run stops at the budget. Before each cell starts, Octant projects the spend from the cells that finished. If the next cell would pass your token or cost budget, the remaining cells are marked Skipped, budget reached and the run ends as Budget reached. Judging for cells that already answered continues, so the total can end a little above your budget.
  • Start with one repetition and a small suite to see what a run costs.

Who can do what ​

Only the Octant window on this Mac can create or edit suites, and start, cancel, or purge runs, because a run spends money and can run code. A paired device can watch a run, read suites, runs, leaderboards, and exports, and rate answers. The page says Only this Mac's window can edit benchmarks. when the host refuses a change. See Remote access for pairing.

Memory ​

Benchmark threads stay out of your personal memory. Octant offers no memory to a benchmark turn, and learns nothing from a benchmark prompt or answer. The Benchmarks Project is on the memory settings' list of Projects kept out. See Memory.

Octant documentation · local-first by design