> For the complete documentation index, see [llms.txt](https://seekspeed.gitbook.io/seekspeed-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://seekspeed.gitbook.io/seekspeed-docs/reports/ab-comparisons.md).

# A/B Comparisons

A report with **exactly two** runs unlocks the A/B comparison view. It overlays:

* Side-by-side TTFT and total latency distributions (violin plots).
* Per-prompt deltas (variant − baseline) ordered by magnitude.
* Welch's *t*-test on each metric (TTFT, total, throughput) with a significance badge.
* Cost delta in USD across the whole set.

## Interpreting the badge

| Badge                          | Meaning                                                              |
| ------------------------------ | -------------------------------------------------------------------- |
| 🟢 **Significant improvement** | `p < 0.05` and mean moved in the desired direction. Safe to promote. |
| 🟡 **Suggestive**              | `0.05 ≤ p < 0.10`. Re-run with more iterations before deciding.      |
| ⚪ **No effect detected**       | `p ≥ 0.10`. Treat as no change.                                      |
| 🔴 **Significant regression**  | `p < 0.05` in the wrong direction. Do not promote.                   |

The "promote variant" action on an A/B report is only enabled for 🟢 results that also pass the [accept gate](/seekspeed-docs/optimization-engine/apply-measure-accept.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://seekspeed.gitbook.io/seekspeed-docs/reports/ab-comparisons.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
