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 mepurpose
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
- Select a factorial design or a one-factor design, and compute the candidate count of each.
- Compute the attempt count, the monthly cost, and the cost per success of a benchmark design.
- Write a measurement plan with a two-sided verdict and the confounds that it controls.
- Explain why a pooled rate and a mean over common targets can give a different order of two tools.
- 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:
| item | value |
|---|---|
| Tools | 5 |
| Providers | 5, all of one class |
| Test pages | 9 lab pages that you operate |
| Trials for each test point (one candidate on one test page) | 20 |
| unit cost | 0.002 USD for each attempt, an example value |
| Schedule | One sweep each week: all trials of each test point |
the design: factorial, not one-factor
status of this section: documented in my test systemA 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 systemEach 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 item | a strong design states | module |
|---|---|---|
| Design | The factorial design, and its candidate count | Fixed costs, guards, and build or buy |
| Sample size | The trials for each test point, and the two-sided verdict | The two-sided verdict and the ambiguous band |
| Confounds | The containment test and the mean over common targets | Confounds and pooled comparisons (not yet published) |
| Rank | No rank from one pooled rate | Selection criteria and the limits of a ranking (not yet published) |
| Fleet | The triage, and each column held out | Benchmark design and audit methods |
the two sides
| automation side | detection 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
| option | gain | cost | when it is correct |
|---|---|---|---|
| One-factor design | Few candidates | It cannot show an effect of a combination | A first search, or the repair of one tool |
| Factorial design | Each combination has its own result | The candidate count is the product of the axes | Each custom benchmark of the brief |
| 5 trials for each test point | Low cost | Only 5 of 5 can pass | A first screen only |
| 20 trials for each test point | 16 of 20 can pass | Four times the attempts | Each published comparison |
| Mean over common targets | Each target counts one time | Wide intervals on targets with few attempts | Each comparison of tools that met different pages |
diagram
the review steps: from a brief to a rubric score
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.
| tool | provider a | provider b | provider c |
|---|---|---|---|
| Tool A | base: both designs | both designs | both designs |
| Tool B | both designs | factorial only | factorial only |
| Tool C | both designs | factorial only | factorial only |
triage of one failed attempt before it counts against a tool
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.
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 confoundThe 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.
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 ambiguousThe 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
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
| series | values on each axis | candidates |
|---|---|---|
| one-factor design | 2 values | 3 |
| one-factor design | 3 values | 5 |
| one-factor design | 4 values | 7 |
| one-factor design | 5 values | 9 |
| one-factor design | 6 values | 11 |
| one-factor design | 7 values | 13 |
| one-factor design | 8 values | 15 |
| one-factor design | 9 values | 17 |
| one-factor design | 10 values | 19 |
| one-factor design | 11 values | 21 |
| one-factor design | 12 values | 23 |
| one-factor design | 13 values | 25 |
| one-factor design | 14 values | 27 |
| one-factor design | 15 values | 29 |
| one-factor design | 16 values | 31 |
| one-factor design | 17 values | 33 |
| one-factor design | 18 values | 35 |
| one-factor design | 19 values | 37 |
| one-factor design | 20 values | 39 |
| one-factor design | 21 values | 41 |
| one-factor design | 22 values | 43 |
| one-factor design | 23 values | 45 |
| one-factor design | 24 values | 47 |
| one-factor design | 25 values | 49 |
| factorial design | 2 values | 4 |
| factorial design | 3 values | 9 |
| factorial design | 4 values | 16 |
| factorial design | 5 values | 25 |
| factorial design | 6 values | 36 |
| factorial design | 7 values | 49 |
| factorial design | 8 values | 64 |
| factorial design | 9 values | 81 |
| factorial design | 10 values | 100 |
| factorial design | 11 values | 121 |
| factorial design | 12 values | 144 |
| factorial design | 13 values | 169 |
| factorial design | 14 values | 196 |
| factorial design | 15 values | 225 |
| factorial design | 16 values | 256 |
| factorial design | 17 values | 289 |
| factorial design | 18 values | 324 |
| factorial design | 19 values | 361 |
| factorial design | 20 values | 400 |
| factorial design | 21 values | 441 |
| factorial design | 22 values | 484 |
| factorial design | 23 values | 529 |
| factorial design | 24 values | 576 |
| factorial design | 25 values | 625 |
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
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
| successes in 5 trials | % | interval |
|---|---|---|
| 0 of 5 | 0 | 0 to 43.4 (level 0.95) |
| 1 of 5 | 20 | 3.6 to 62.4 (level 0.95) |
| 2 of 5 | 40 | 11.8 to 76.9 (level 0.95) |
| 3 of 5 | 60 | 23.1 to 88.2 (level 0.95) |
| 4 of 5 | 80 | 37.6 to 96.4 (level 0.95) |
| 5 of 5 | 100 | 56.6 to 100 (level 0.95) |
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
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
| series | tool | % | interval |
|---|---|---|---|
| pooled over all attempts | tool 1 | 71.9 | 67.3 to 76.1 (level 0.95) |
| pooled over all attempts | tool 2 | 71 | 66 to 75.6 (level 0.95) |
| mean over 9 common targets | tool 1 | 65.8 | 60.1 to 71.1 (level 0.95) |
| mean over 9 common targets | tool 2 | 68.1 | 62.3 to 73.3 (level 0.95) |
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
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
| provider | % | interval |
|---|---|---|
| provider 1 | 67.7 | 66.1 to 69.2 (level 0.95) |
| provider 2 | 66.9 | 65.1 to 68.6 (level 0.95) |
| provider 3 | 65.7 | 64.2 to 67.2 (level 0.95) |
failure modes
| problem | cause | correction |
|---|---|---|
| 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
A benchmark has 5 tools and 5 providers. How many candidates does a factorial design run?
- 9
- 10
- 25
- 50
answer
c. 25
A factorial design runs each combination: 5 x 5 = 25. A one-factor design runs 1 + 4 + 4 = 9.
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?
- 0.45 USD
- 9 USD
- 36 USD
- 90 USD
answer
b. 9 USD
25 x 9 x 20 = 4,500 attempts. 4,500 x 0.002 USD = 9 USD.
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?
- Pass
- Fail
- 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.
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.
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.
- Compute the candidate count of the one-factor design and of the factorial design.
- Compute the attempts and the cost of one factorial sweep.
- Write what the plan does about tool D.
- 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
- Simpson's Paradox, Stanford Encyclopedia of Philosophy, article, read 2026-11-22
- 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).
- Benchmark platform, data (my test system): pass rates by tool and block rates by provider of stored attempts, 2026-11 (not public).
- My model of the benchmark brief, its cost model, its risk list, and the triage of a failed attempt, 2026-11 (not public).
- Course design: the review steps of the design briefs and the rubric, 2026-11 (not public).