Skip to content

Run comparison mode ​

Put two runs side by side to see whether a tuning change helped.

Starting a comparison ​

From the landing page, click Compare two runs. Two slots appear: Baseline and Candidate.

  1. Load a run into each slot the same way you'd load a single run (drag and drop, Choose file, Choose rolling-log folder, or a History Server fetch).
  2. Click Compare.

The runs parse one after the other through the same background worker. When both finish, the comparison view opens.

Already looking at a run, for example the one before a change? Click Compare with another run in the top bar (or the More options menu on a phone). The compare view opens with that run as the baseline, so you only load the candidate, and the open run is not parsed again. Back to the run returns to its dashboard.

Reading the comparison ​

The page opens with a verdict: whether the candidate finished faster or slower than the baseline, and by how much (a change under 2% reads as "about as long"). When either run had failed jobs, the verdict leads with that instead, for example "The candidate had 2 of 5 jobs fail (baseline: none)" or "The candidate's only job failed", and the run-time line follows. When either log has no end-of-run record (the run was killed or the log cut off), the verdict says how much run time each log covers, in a neutral tone, instead of calling the shorter run faster. It then lists which cost metrics got worse or better in the candidate (again ignoring changes under 2%), and which finding categories became more or less frequent. Volume and count metrics (input, output, tasks, executors) are left out, since more or less of them is not better or worse on its own. See where to start in the candidate opens the candidate's dashboard, whose own verdict names the first thing to fix.

When the two runs have the same Spark configuration, the same plan and the same output, the verdict reads "Same configuration, plan and output" and says where a time difference came from, for example "Time differs by 8m 36s (49%): executors averaged 57.0 in the baseline and 32.6 in the candidate". A run that had fewer executors, or less of its allocated core time busy, takes longer without being a regression, and the verdict does not call it one. When the time gap is past noise and no measured factor explains it, the verdict keeps its better or worse tone and says the gap is unexplained. When neither run reports output rows or output bytes, the verdict reads "Same configuration and plan. Output was not compared." and keeps the tone from the wall clock. When configuration or plan differs and the wall clock moves one way and executor run-time or allocated core-hours move the other, the verdict reads as a mixed result and names both.

When configuration, plan or output differs, the verdict adds a sentence for each difference that makes the time gap hard to read:

  • Mean executors differ by more than 1.5 times and the run got slower with fewer executors or faster with more: the wall-clock change reflects executor availability, not only the job.
  • The YARN queue (spark.yarn.queue) differs: both queues are named.
  • More than 20% of the baseline's stages pair with no candidate stage, re-planned leftovers included, or the task count changes by more than 25%: the plans differ. The sentence gives the unmatched stage count and their share of the baseline's executor run time. When every stage pairs, a task count change alone reads as a task count change, not a plan difference, and shows when configuration and plan agree.
  • spark.jars, spark.submit.pyFiles or a spark.yarn.dist.* path differs: the sentence names the key as a likely code change.

The limits are the defaults of --executor-ratio, --unmatched-stages-pct and --task-count-change-pct in the CLI, and of executorRatio, unmatchedShare and taskCountChange in compare_runs.

The What differs between the runs card sits above the metrics. It lists whether the Spark configuration is the same (and, when it is not, each key that differs with both values), whether every stage pairs, the input read, output rows and output written of each run, the mean and peak executor count, and the share of allocated core time that task time filled. Below the table it states how long the two run windows overlapped and the arithmetic that bridges the wall-clock difference: the wall-clock ratio is the task-time ratio divided by the product of the mean-executor ratio and the task-time share ratio, for runs whose executors have the same core count. Configuration keys the cluster sets per run (the application id, start time and driver address) are never compared, and a key whose value is a secret is withheld from both sides and not compared, as in the run output's effective configuration; the CLI's --conf-redact-regex matches are withheld too. Output rows must be equal for the output to read as the same; input and output bytes may differ within the noise band. The output reads as the same only when output rows or output bytes are measured on both sides.

The Metrics table covers the whole run: wall-clock duration, memory spill, task skew, failed-task rate, disk spill, GC time, input/output bytes, executor run-time, and task/executor counts, baseline against candidate with the change. Findings by category lists the findings that are new in the candidate, the findings that are gone from it, and the findings whose impact level changed, with the affected stages. A finding is the same finding in both runs when it has the same type, rule and location (a paired stage, a paired SQL execution, an audited setting, or the whole run), whatever its value or impact level. A finding the baseline also has at the same place is never new or gone: when its impact level differs, it is listed under Impact changed with both levels. A finding on a stage that pairs with nothing still matches the same finding on an unpaired stage in the other run.

The Stages compared table lists every paired stage with its change in run time, CPU time, spill (memory and disk together), input, output and shuffle (read and write together), largest run-time change first. A faster candidate reads green and a slower one red; input and output are workload volume, so they stay neutral. Under each stage name sit the pair's quality (exact, structural or aligned) and its score from 0 to 1. An aligned pair was matched on similarity or position, so treat its change with care.

Select a stage's name to see both runs' figures for it side by side without leaving the comparison: the stage's name in each run, then duration, run time, GC time, spill, input, output and task counts with the change. Open stage N in the baseline dashboard and Open stage N in the candidate dashboard open that stage's detail in the run's own dashboard, and ← Back to comparison returns here. Below the table, Re-planned work lists queries that ran a different number of stages in the two runs, with the leftover stages and their total run time per side, and Unmatched stages lists stages that paired with nothing. Both open in the same side-by-side view, and list stages by name next to their ID. The table shows 25 pairs and reveals more on request.

When no stage pairs at all, the card says why in one sentence and shows Pick a stage pair: choose a baseline and a candidate stage, then Compare pair to open them side by side.

The table columns read Baseline and Candidate; hover a column heading to see the full name of the run.

A banner above the verdict appears when the match is weak. It reads low when under 90% of executor run time sits in paired stages (or the application names differ), and insufficient when neither run recorded any executor run time, so there is nothing to pair. The banner can be dismissed; every change on the page is still shown.

How stages are paired, and what the matching confidence means, is in How stages are matched.

For everything else, matching is manual: the Pinned per-stage deltas widget lets you pick one stage from the baseline and one from the candidate yourself and pin the pair, then shows their duration, executor run-time, GC time, memory/disk spill, input/output bytes, task count, and failed tasks side by side. Pin as many pairs as you want to check.

For either run's full dashboard, click View baseline dashboard or View candidate dashboard. ← Back to comparison takes you back.

Comparing without the dashboard ​

The same comparison runs headlessly, and opens with the same verdict: the positional run is the candidate, the --baseline run the baseline. The CLI's --baseline <local file or rolling-log dir> flag (or --baseline-shs-base-url/--baseline-app-id for a History Server run) adds the comparison. In JSON the run's report is under run and the comparison sits beside it under comparison (comparison.verdict is the headline), in the same { schemaVersion, run, comparison, budgets } object a run without a baseline writes minus comparison; in Markdown the comparison section follows the report, with durations, sizes and core-hours in readable units and the percent change on each metric line (JSON keeps the raw values). --baseline can also gate a build on the comparison (--max-regression-pct, --stage-regression-budget, --fail-on-introduced; see Getting started). The MCP server's compare_runs and evaluate_budgets tools do the same for an AI assistant; see MCP tools reference.