skip to content

design reviews · lesson 3 of 8 · sources checked 2026-11-22

brief 3: a benchmark that compares tools without confounds

This lesson gives a brief for a benchmark of tools on your own test pages, and shows how to keep confounds out of the result.

status of this lesson: measured by me

purpose

A benchmark of tools gives one number for each tool. But each number also holds the provider, the pages, the time, and the fleet that ran it. If you do not control these parts, a confound can decide the order of the tools.

objectives

  1. Select a factorial design or a one-factor design, and compute the candidate count of each.
  2. Compute the attempt count, the monthly cost, and the cost per success of a benchmark design.
  3. Write a measurement plan with a two-sided verdict and the confounds that it controls.
  4. Explain why a pooled rate and a mean over common targets can give a different order of two tools.
  5. Write a risk list for the fleet, and score the design with the rubric.

new terms

how it works

The brief asks for a benchmark that compares automation tools on test pages that you operate. The result must not depend on the provider, the target mix, the time, or the fleet.

Each attempt uses each part of the stack, and a test page reads all of them. Thus an error of your own fleet can look like a detection.

When a site recognizes the fleet itself, the state is fleet burn. Then each tool fails together on that site.

The review steps of the first diagram apply, as for each design brief of the module. The rubric is at the end of this section.

the brief

All values are synthetic:

itemvalue
Tools5
Providers5, all of one class
Test pages9 lab pages that you operate
Trials for each test point (one candidate on one test page)20
unit cost0.002 USD for each attempt, an example value
ScheduleOne sweep each week: all trials of each test point

the design: factorial, not one-factor

status of this section: documented in my test system

A one-factor design changes one part at a time from a base configuration.

A factorial design runs each combination of the tested parts.

The benchmark platform, my test system, counts the candidates with two formulas. Here n is the count of values on one axis:

  • the one-factor design: 1 plus the sum of (n - 1) over the axes;
  • the factorial design: the product of the n values of the axes.

For example, 5 tools and 5 providers give 9 candidates in a one-factor design and 25 in a factorial design. The second diagram shows the combinations for 3 tools and 3 providers: 5 against 9.

Only the factorial design shows an effect that comes from a combination, for example one tool that fails only with one provider. Thus the brief takes the factorial design. The first chart shows how fast its count grows.

the sample size and the verdict

status of this section: documented in my test system

Each target of the benchmark is one of your test pages.

The benchmark platform passes a test point only when the lower bound of its 95% Wilson interval is 0.5 or more.

The second chart shows the problem at 5 trials: only 5 of 5 passes, and 4 of 5 does not. A two-sided verdict also fails a test point when the upper bound is under 0.5. Each other result is ambiguous. More detail is in The two-sided verdict and the ambiguous band.

With 20 trials, 16 of 20 passes, because its lower bound is 0.584. The second code example computes each verdict.

the cost model

The unit cost is the cost of one attempt. The cost per success is the unit cost divided by the lower bound of the success rate.

example One sweep has 25 candidates, 9 pages, and 20 trials: 4,500 attempts. At 0.002 USD each, a sweep costs 9 USD, and four sweeps in a month cost 36 USD. A test point with 16 of 20 has the lower bound 0.584. Its cost per success is 0.002 / 0.584, which is 0.0034 USD.

confounds in the comparison

A containment test finds a part of the attempts of a tool that never varied, for example one browser for all its attempts. The first code example applies it. More detail is in Confounds and pooled comparisons (not yet published).

The target mix is a second confound. For example, a tool with many attempts on easy pages gets a high pooled rate.

A micro average pools all attempts of a tool. A macro average takes the mean of the rates of each target.

The Stanford Encyclopedia of Philosophy describes Simpson's paradox: an association between two variables emerges, disappears, or reverses when the population is divided into subpopulations Stanford Encyclopedia of Philosophy, source 1.

what the stored data shows

On the benchmark platform, the top two tools of one test design change places between the pooled rate and the mean over common targets. The third chart shows it.

In one fixed window, three providers of one class have close pooled block rates. The fourth chart shows the pooled rates. Thus the design compares the mean over common targets, and holds the browser, the page, and the time constant for a comparison of providers.

the fleet and its risks

A common-mode column gives each tool the same result, so it does not measure the tools. For example, a test page where no tool passes can show a fault of the page or of its rule. It can also show fleet burn. The third diagram gives the triage of one failed attempt.

The risk list of the design:

  • A harness error counts as a fail of a tool. Control: check that the page loaded and gave a result.
  • An error of coherence in the fleet looks like a detection. Control: a positive control on each page, a tool with a known result.
  • A common-mode column enters the rank. Control: hold it out, and label it.
rubric itema strong design statesmodule
DesignThe factorial design, and its candidate countFixed costs, guards, and build or buy
Sample sizeThe trials for each test point, and the two-sided verdictThe two-sided verdict and the ambiguous band
ConfoundsThe containment test and the mean over common targetsConfounds and pooled comparisons (not yet published)
RankNo rank from one pooled rateSelection criteria and the limits of a ranking (not yet published)
FleetThe triage, and each column held outBenchmark design and audit methods

the two sides

automation sidedetection side
The benchmark operator must not add the signals of its own fleet to the result. A part of the attempts that never varies, or a pooled rate over different target mixes, gives an order that the tools did not earn.A test page reads the whole stack. A coherence error of the fleet, or a site that recognizes the fleet, looks like a detection of each tool.

design decisions

optiongaincostwhen it is correct
One-factor designFew candidatesIt cannot show an effect of a combinationA first search, or the repair of one tool
Factorial designEach combination has its own resultThe candidate count is the product of the axesEach custom benchmark of the brief
5 trials for each test pointLow costOnly 5 of 5 can passA first screen only
20 trials for each test point16 of 20 can passFour times the attemptsEach published comparison
Mean over common targetsEach target counts one timeWide intervals on targets with few attemptsEach comparison of tools that met different pages

diagram

the review steps: from a brief to a rubric score

The same steps serve each brief of the module. A weak item goes back to the design through the module that explains it.source: Course design: the review steps of the design briefs

A matrix of 3 synthetic tools against 3 synthetic providers. The base combination and the other combinations of the base row and the base column run in both designs: 5 in total. The other 4 run in the factorial design only, 9 in total.

combinations that each design runs for 3 tools and 3 providers
toolprovider aprovider bprovider c
Tool Abase: both designsboth designsboth designs
Tool Bboth designsfactorial onlyfactorial only
Tool Cboth designsfactorial onlyfactorial only
A one-factor design runs the base row and the base column only. The factorial design also runs the four combinations where two parts change.source: My model of the one-factor and the factorial design

triage of one failed attempt before it counts against a tool

A failed attempt counts against a tool only after three checks. Each other branch is a fault of the page, the fleet, or the design.source: My model of the triage of a failed attempt

code example

The first example applies a containment test to synthetic attempts. A value in 95% or more of the attempts of a tool, or fewer than 5 attempts with another value, marks a confound.

m36-x02-containment.tstypescript

Find a part of the attempts of each tool that never varied, with a share limit and a contrast floor, on synthetic attempts.

// Containment test on synthetic attempts: does one part of the attempts of a tool never vary?
type Attempt = { tool: string; browser: string; provider: string; page: string };
const PARTS = ["browser", "provider", "page"] as const;
const SHARE_LIMIT = 0.95; // one value in 95% or more of the attempts of the tool
const CONTRAST_FLOOR = 5; // fewer than 5 attempts with another value

// Synthetic attempts: [tool, browser, provider, page, count]
const ROWS: [string, string, string, string, number][] = [
  ["tool A", "browser A", "provider A", "page A", 10],
  ["tool A", "browser A", "provider B", "page B", 10],
  ["tool A", "browser A", "provider A", "page C", 10],
  ["tool A", "browser A", "provider B", "page A", 10],
  ["tool B", "browser A", "provider A", "page A", 15],
  ["tool B", "browser B", "provider A", "page B", 15],
  ["tool B", "browser B", "provider A", "page C", 7],
  ["tool B", "browser A", "provider B", "page B", 3],
  ["tool C", "browser A", "provider A", "page A", 12],
  ["tool C", "browser B", "provider B", "page B", 12],
  ["tool C", "browser A", "provider B", "page C", 12],
  ["tool C", "browser B", "provider A", "page A", 12],
];
const attempts: Attempt[] = [];
for (const [tool, browser, provider, page, n] of ROWS) {
  for (let i = 0; i < n; i++) attempts.push({ tool, browser, provider, page });
}

const tools = [...new Set(attempts.map((a) => a.tool))];
for (const tool of tools) {
  const mine = attempts.filter((a) => a.tool === tool);
  const marks: string[] = [];
  for (const part of PARTS) {
    const counts = new Map<string, number>();
    for (const a of mine) counts.set(a[part], (counts.get(a[part]) ?? 0) + 1);
    const [top, topCount] = [...counts.entries()].sort((x, y) => y[1] - x[1])[0];
    const share = topCount / mine.length;
    const others = mine.length - topCount;
    const reason = share >= SHARE_LIMIT ? "share" : others < CONTRAST_FLOOR ? "contrast floor" : "";
    console.log(`${tool} ${part}: ${top} in ${topCount} of ${mine.length} (share ${share.toFixed(2)}), other values ${others}${reason ? "  <- confound: " + reason : ""}`);
    if (reason) marks.push(part);
  }
  console.log(`${tool} result: ${marks.length ? "confound in " + marks.join(", ") : "no confound"}`);
}

output

One line for each tool and part, with the share of the most common value and the confound mark. One result line for each tool.

tool A browser: browser A in 40 of 40 (share 1.00), other values 0  <- confound: share
tool A provider: provider A in 20 of 40 (share 0.50), other values 20
tool A page: page A in 20 of 40 (share 0.50), other values 20
tool A result: confound in browser
tool B browser: browser B in 22 of 40 (share 0.55), other values 18
tool B provider: provider A in 37 of 40 (share 0.93), other values 3  <- confound: contrast floor
tool B page: page B in 18 of 40 (share 0.45), other values 22
tool B result: confound in provider
tool C browser: browser A in 24 of 48 (share 0.50), other values 24
tool C provider: provider A in 24 of 48 (share 0.50), other values 24
tool C page: page A in 24 of 48 (share 0.50), other values 24
tool C result: no confound

The output shows a confound in the browser of tool A and in the provider of tool B. Tool C has no confound.

The second example computes the 95% Wilson interval and the two-sided verdict of synthetic test points.

m36-x03-verdict.tstypescript

Compute the 95% Wilson interval of synthetic counts, and give a two-sided verdict for each test point.

// Wilson interval (95%) and a two-sided verdict for synthetic test points.
const Z = 1.96;
const LINE = 0.5; // the pass line
const MIN_TRIALS = 5; // under 5 trials, the result stays ambiguous

function wilson(k: number, n: number): [number, number] {
  const p = k / n;
  const d = 1 + (Z * Z) / n;
  const center = (p + (Z * Z) / (2 * n)) / d;
  const half = (Z * Math.sqrt((p * (1 - p)) / n + (Z * Z) / (4 * n * n))) / d;
  return [Math.max(0, center - half), Math.min(1, center + half)];
}

function verdict(k: number, n: number): string {
  const [lo, hi] = wilson(k, n);
  if (n < MIN_TRIALS) return "ambiguous";
  if (lo >= LINE) return "pass";
  if (hi < LINE) return "fail";
  return "ambiguous";
}

// Synthetic test points: [point, successes, trials]
const POINTS: [string, number, number][] = [
  ["point 1", 5, 5],
  ["point 2", 4, 5],
  ["point 3", 0, 5],
  ["point 4", 4, 4],
  ["point 5", 16, 20],
  ["point 6", 6, 20],
  ["point 7", 11, 20],
];

for (const [point, k, n] of POINTS) {
  const [lo, hi] = wilson(k, n);
  console.log(`${point}: ${k} of ${n}, interval ${lo.toFixed(3)} to ${hi.toFixed(3)}, verdict ${verdict(k, n)}`);
}

output

One line for each test point, with its count, its interval, and its verdict.

point 1: 5 of 5, interval 0.566 to 1.000, verdict pass
point 2: 4 of 5, interval 0.376 to 0.964, verdict ambiguous
point 3: 0 of 5, interval 0.000 to 0.434, verdict fail
point 4: 4 of 4, interval 0.510 to 1.000, verdict ambiguous
point 5: 16 of 20, interval 0.584 to 0.919, verdict pass
point 6: 6 of 20, interval 0.145 to 0.519, verdict ambiguous
point 7: 11 of 20, interval 0.342 to 0.742, verdict ambiguous

The output shows that 4 of 5 stays ambiguous, and that 16 of 20 passes. 4 of 4 also stays ambiguous, because the code gives no verdict under 5 trials.

data

candidates against values on each axis, for two swept axes

status of this figure: example

candidates against values on each axis, for two swept axes34946252 values3 values4 values5 values6 values7 values8 values9 values10 values11 values12 values13 values14 values15 values16 values17 values18 values19 values20 values21 values22 values23 values24 values25 valuescandidates1. one-factor design2. factorial design

source: Benchmark platform, code (my test system): candidate formulas for a sweep of two axes; date 2026-11-16; condition: Two axes with the same number of values on each. The axis sizes are example inputs.

data table
candidates against values on each axis, for two swept axes
seriesvalues on each axiscandidates
one-factor design2 values3
one-factor design3 values5
one-factor design4 values7
one-factor design5 values9
one-factor design6 values11
one-factor design7 values13
one-factor design8 values15
one-factor design9 values17
one-factor design10 values19
one-factor design11 values21
one-factor design12 values23
one-factor design13 values25
one-factor design14 values27
one-factor design15 values29
one-factor design16 values31
one-factor design17 values33
one-factor design18 values35
one-factor design19 values37
one-factor design20 values39
one-factor design21 values41
one-factor design22 values43
one-factor design23 values45
one-factor design24 values47
one-factor design25 values49
factorial design2 values4
factorial design3 values9
factorial design4 values16
factorial design5 values25
factorial design6 values36
factorial design7 values49
factorial design8 values64
factorial design9 values81
factorial design10 values100
factorial design11 values121
factorial design12 values144
factorial design13 values169
factorial design14 values196
factorial design15 values225
factorial design16 values256
factorial design17 values289
factorial design18 values324
factorial design19 values361
factorial design20 values400
factorial design21 values441
factorial design22 values484
factorial design23 values529
factorial design24 values576
factorial design25 values625
The values are computed from the candidate formulas of the two sweep designs. The one-factor design grows in a line. The factorial design grows as a product: 25 values on each axis give 49 against 625 candidates.

The first chart repeats the data of a chart in Fixed costs, guards, and build or buy. Here it sizes the attempt count of the design: each candidate multiplies by the pages and the trials.

wilson interval for k successes in 5 trials

status of this figure: example

wilson interval for k successes in 5 trials0 of 50%1 of 520%2 of 540%3 of 560%4 of 580%5 of 5100%pass line, 50% 50%unit: %

lines: interval, level 0.95

source: Benchmark platform, code (my test system): Wilson interval formula at 5 trials; date 2026-11-16; condition: The number of trials is the default of 5. The line is the pass threshold of the lower bound.

data table
wilson interval for k successes in 5 trials
successes in 5 trials%interval
0 of 500 to 43.4 (level 0.95)
1 of 5203.6 to 62.4 (level 0.95)
2 of 54011.8 to 76.9 (level 0.95)
3 of 56023.1 to 88.2 (level 0.95)
4 of 58037.6 to 96.4 (level 0.95)
5 of 510056.6 to 100 (level 0.95)
Each bar is the success rate of k of 5 trials. The whisker is the 95% Wilson interval, computed from the formula, with one decimal place. The line marks 50%. Only 5 of 5 puts the lower bound above the line.

The second chart is the reason for 20 trials for each test point of the brief.

pooled pass rate against mean over common targets, top two tools

status of this figure: measured by me

pooled pass rate against mean over common targets, top two toolstool 11: 71.9%2: 65.8%tool 21: 71%2: 68.1%unit: %1. pooled over all attempts2. mean over 9 common targets

lines: interval, level 0.95

source: Benchmark platform, data (my test system): pass rate by tool, sweep design without the fingerprint step; date 2026-11-03; sample of 3,373; condition: Definitive attempts, 1,813 for tool 1 and 1,560 for tool 2. The pooled interval is clustered by run.

data table
pooled pass rate against mean over common targets, top two tools
seriestool%interval
pooled over all attemptstool 171.967.3 to 76.1 (level 0.95)
pooled over all attemptstool 27166 to 75.6 (level 0.95)
mean over 9 common targetstool 165.860.1 to 71.1 (level 0.95)
mean over 9 common targetstool 268.162.3 to 73.3 (level 0.95)
The two tools change places between the views. 15 of 105 tool pairs change order. Both gaps are inside the intervals. The tool numbers follow the pooled rate. They are not a ranking of products.

The third chart shows that the view of the rate can change the order of two tools. Thus the plan states its view of the rate before the run.

pooled block rate of three providers of one class

status of this figure: measured by me

pooled block rate of three providers of one classprovider 167.7%provider 266.9%provider 365.7%unit: %

lines: interval, level 0.95

source: Benchmark platform, data (my test system): block rate by provider, all providers of one class; date 2026-11-03; sample of 9,885; condition: Definitive attempts in one fixed window, 2,700 to 3,808 for each provider. The intervals are at the attempt level.

data table
pooled block rate of three providers of one class
provider%interval
provider 167.766.1 to 69.2 (level 0.95)
provider 266.965.1 to 68.6 (level 0.95)
provider 365.764.2 to 67.2 (level 0.95)
The spread is 2.0 points, and the intervals overlap. A check that holds the browser and the target mix equal gives the same order. Do not rank the providers. The provider numbers belong to this chart only.

failure modes

problemcausecorrection
A tool gets a low rate for a part that it never varied.All its attempts used one browser or one provider.Run the containment test, and add attempts with other values.
Two tools change places in the report.The plan did not state the view of the rate before the run.State the mean over common targets in the plan.
A good test point gets a fail.5 trials, and a one-sided rule on the lower bound.Use 20 trials and the two-sided verdict.
Each tool fails on one test page.A fault of the page, of its rule, or fleet burn.Hold the column out of the rank, label it, and check the page.
A combination effect is not in the result.A one-factor design.Use the factorial design for the published comparison.

check questions

  1. A benchmark has 5 tools and 5 providers. How many candidates does a factorial design run?

    1. 9
    2. 10
    3. 25
    4. 50
    answer

    c. 25

    A factorial design runs each combination: 5 x 5 = 25. A one-factor design runs 1 + 4 + 4 = 9.

  2. One sweep has 25 candidates, 9 test pages, and 20 trials for each test point. The unit cost is 0.002 USD. What does one sweep cost?

    1. 0.45 USD
    2. 9 USD
    3. 36 USD
    4. 90 USD
    answer

    b. 9 USD

    25 x 9 x 20 = 4,500 attempts. 4,500 x 0.002 USD = 9 USD.

  3. A test point has 4 successes in 5 trials. Its 95% Wilson interval is 0.376 to 0.964. What does the two-sided verdict give?

    1. Pass
    2. Fail
    3. Ambiguous
    answer

    c. Ambiguous

    The lower bound is under 0.5, so it is not a pass. The upper bound is over 0.5, so it is not a fail. Thus the test point is ambiguous.

  4. Explain why the pooled rate and the mean over common targets can give a different order of two tools.

    sample answer

    The pooled rate gives each attempt the same weight, so a tool with many attempts on easy pages gets a high rate. The mean over common targets gives each target the same weight. Thus a different target mix can change the order.

  5. On one test page, no tool passes. Give the risk and the control for the plan.

    sample answer

    The page is a common-mode column. It can show a fault of the page, of its rule, or fleet burn, and it does not measure the tools. The control is to check that the page loaded and gave a result, then to hold the column out of the rank and label it.

exercise

exercise Do this task on paper. Use these synthetic values of a smaller brief:

  • Tools: 4. Providers: 3, of one class. Test pages: 6.
  • Trials for each test point: 20. Unit cost: 0.002 USD for each attempt.
  • Containment result: tool D used one provider for 39 of its 40 attempts.
  • On test page 5, no tool passes.
  1. Compute the candidate count of the one-factor design and of the factorial design.
  2. Compute the attempts and the cost of one factorial sweep.
  3. Write what the plan does about tool D.
  4. Write what the plan does about test page 5.
sample answer

The answer uses the synthetic values of the task.

The one-factor design has 1 + 3 + 2 = 6 candidates. The factorial design has 4 x 3 = 12 candidates.

One factorial sweep has 12 candidates, 6 pages, and 20 trials: 1,440 attempts. At 0.002 USD each, the sweep costs 2.88 USD.

Tool D has a provider in 39 of 40 attempts, a share of 0.975. That is a confound, thus the plan adds attempts of tool D with the other providers before a comparison. Test page 5 is a common-mode column. The plan checks that the page loaded and gave a result, holds the column out of the rank, and labels it.

sources

  1. Simpson's Paradox, Stanford Encyclopedia of Philosophy, article, read 2026-11-22
  2. Benchmark platform, code (my test system): the candidate formulas of the two sweep designs and the pass threshold of the Wilson lower bound, 2026-11 (not public).
  3. Benchmark platform, data (my test system): pass rates by tool and block rates by provider of stored attempts, 2026-11 (not public).
  4. My model of the benchmark brief, its cost model, its risk list, and the triage of a failed attempt, 2026-11 (not public).
  5. Course design: the review steps of the design briefs and the rubric, 2026-11 (not public).