comparison schema
comparison.json, written by servtuner compare: the experiment comparison. Runs with the same knobs are repeats of one configuration; each configuration’s objectives carry a confidence interval across repeats (throughput objectives) or a bootstrap interval over the pooled per-request records (latency objectives). A configuration wins only when its interval does not overlap the runner-up’s, or, with single samples, when it leads by more than twice the noise floor. Recomputable from the bundles.
Schema file: schema/json/comparison.schema.json. Generated from servtuner commit 5b46cdad0e5c.
Top level
Section titled “Top level”| Field | Type | Required | Description |
|---|---|---|---|
analyzer_version |
string |
Yes | |
experiment |
string |
No | The runs’ experiment name, when they all share one. |
objective |
objectiveName | Yes | The primary objective: the one the recommendation and the Pareto set use. |
varied_knobs |
array of string |
Yes | Knobs whose values differ between configurations, sorted. |
is_factorial |
boolean |
Yes | True when every combination of the varied knobs’ values was run. With two or more varied knobs and no factorial design, effects are not claimed to be independent. |
reference_stage_index |
integer |
No | The highest stage valid in every compared run; the latency side of the Pareto set is read there. Absent when no stage is valid in all of them. ≥ 0 |
comparability |
comparability | Yes | |
excluded_runs |
array of excludedRun | Yes | Runs left out of the comparison, and why. |
configurations |
array of knobConfiguration | Yes | |
rankings |
array of objectiveRanking | Yes | One ranking per objective that could be computed for every configuration. |
pareto_configuration_ids |
array of string |
No | Configurations not dominated on (primary objective, p95 TTFT at the reference stage). Absent when either is unavailable for some configuration. |
recommendation |
knobRecommendation | No |
Definitions
Section titled “Definitions”objectiveName
Section titled “objectiveName”The slo_* objectives divide each run’s SLO-max RPS by the configuration’s size: ready replicas, recommended CPU request cores per replica times replicas, or GPUs. p95_ttft_at_target_rps is read at the stage offering analysis.target_rps.
Type: "slo_max_rps", "slo_rps_per_replica", "slo_rps_per_core", "slo_rps_per_gpu", "tokens_per_s_per_gpu", "p95_ttft_at_target_rps", "infra_cost_per_1k_requests", "infra_cost_per_1m_output_tokens", "cost_per_1k_requests", "cost_per_1m_output_tokens"
objectiveDirection
Section titled “objectiveDirection”Type: "maximize", "minimize"
comparisonConfidence
Section titled “comparisonConfidence”High needs at least 3 repeats of every configuration, a significant result and full catalog coverage; medium is a significant single-sample or two-repeat result; low is anything weaker.
Type: "high", "medium", "low"
comparisonIssueCode
Section titled “comparisonIssueCode”Type: "workload_differs", "target_type_differs", "hardware_differs", "arrival_differs", "ladder_differs", "slos_differ", "experiment_differs", "too_few_configurations", "not_factorial", "coverage_incomplete"
comparisonIssue
Section titled “comparisonIssue”| Field | Type | Required | Description |
|---|---|---|---|
code |
comparisonIssueCode | Yes | |
message |
string |
Yes |
comparability
Section titled “comparability”Whether the runs measured the same thing. Different workloads, target types, arrival processes, ladders or SLOs make the comparison not comparable, and no configuration is recommended. Different hardware is an issue but stays comparable, because the hardware may be the knob.
| Field | Type | Required | Description |
|---|---|---|---|
is_comparable |
boolean |
Yes | |
workload_hash |
string |
No | |
workload_preset |
presetRef | No | The workload preset every run named; absent when they named none or different ones. |
target_type |
targetType | No | |
issues |
array of comparisonIssue | Yes |
excludedRun
Section titled “excludedRun”| Field | Type | Required | Description |
|---|---|---|---|
run_id |
string |
Yes | |
reason |
string |
Yes |
intervalMethod
Section titled “intervalMethod”repeats: mean across runs with a Student t interval; bootstrap: percentile bootstrap over the pooled per-request records; single_sample: one run, no interval.
Type: "repeats", "bootstrap", "single_sample"
objectiveInterval
Section titled “objectiveInterval”An objective’s value with its 95% interval, or the reason it is unavailable; never both. ci_low and ci_high are absent for single_sample.
| Field | Type | Required | Description |
|---|---|---|---|
value |
number |
No | ≥ 0 |
ci_low |
number |
No | ≥ 0 |
ci_high |
number |
No | ≥ 0 |
method |
intervalMethod | No | |
is_lower_bound |
boolean |
No | True when some run never failed its SLOs within its ladder, so its SLO-max is the top stage’s rate and the true value may be higher. A lower-bound runner-up cannot be beaten; extend the ladder. Default: false. |
samples |
integer |
Yes | Runs for repeats and single_sample; requests for bootstrap. ≥ 0 |
unavailable_reason |
string |
No | |
is_upper_bound |
boolean |
No | The same censoring for an objective where less is better, such as a cost per request: the true value may be lower. An upper-bound runner-up cannot be beaten either. Default: false. |
Exactly which fields are allowed together is restricted further by the schema.
objectiveEstimate
Section titled “objectiveEstimate”| Field | Type | Required | Description |
|---|---|---|---|
objective |
objectiveName | Yes | |
estimate |
objectiveInterval | Yes |
knobConfiguration
Section titled “knobConfiguration”Runs with identical knobs: repeats of one configuration.
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
Yes | c1, c2, … in the order of each configuration’s first run id. |
knobs |
map of knobValue | Yes | |
run_ids |
array of string |
Yes | at least 1 item |
objectives |
array of objectiveEstimate | Yes | |
reference_ttft_p95_seconds |
objectiveInterval | No | p95 TTFT at the reference stage, bootstrapped over the pooled records of the configuration’s runs. |
is_pareto |
boolean |
Yes |
rankedConfiguration
Section titled “rankedConfiguration”| Field | Type | Required | Description |
|---|---|---|---|
configuration_id |
string |
Yes | |
value |
number |
Yes | ≥ 0 |
objectiveRanking
Section titled “objectiveRanking”| Field | Type | Required | Description |
|---|---|---|---|
objective |
objectiveName | Yes | |
direction |
objectiveDirection | Yes | |
order |
array of rankedConfiguration | Yes | Best first. |
winner_id |
string |
No | Present only when the best configuration’s lead is significant. |
is_significant |
boolean |
Yes | |
confidence |
comparisonConfidence | Yes | |
reason |
string |
Yes |
knobRecommendation
Section titled “knobRecommendation”The knob values to apply: the winner on the primary objective. Absent when the runs are not comparable or no configuration wins significantly.
| Field | Type | Required | Description |
|---|---|---|---|
configuration_id |
string |
Yes | |
knobs |
map of knobValue | Yes | Only the varied knobs, at the winner’s values. |
objective |
objectiveName | Yes | |
confidence |
comparisonConfidence | Yes | |
tier |
"empirical" |
Yes |