6. Where the reference engine spends its time
Measured as a black box on 2026-11-29, before any design work, to decide whether the project was worth starting (phase 0 gate in REFRESH.md). Raw data: bench/phase0/results/phase0.jsonl; scripts in bench/phase0/.
6.1 Method
- axe-core 4.14.1 injected through its
sourcestring, as @axe-core/playwright does. - Playwright 1.65.1, Chrome Headless Shell 159.0.8154.6, viewport 1280×900, Node 22.23.2.
- Three public pages recorded once to HAR, then replayed with every unrecorded request aborted: no network during the timed runs.
- One warmup, then the median of 5. Each
axe.rungets a fresh page load, so no cache carries over between runs. - "Citadel tags" =
runOnlyon wcag2a, wcag2aa, wcag21a, wcag21aa and wcag22aa: 70 of the 105 rules. This is the configuration of the first adopter, and the MVP scope.
6.2 Totals
| Page | Elements | axe.run, Citadel tags | axe.run, all rules | one trivial rule |
|---|---|---|---|---|
| MDN HTML elements reference | 2,481 | 262 ms | 253 ms | 16 ms |
| Wikipedia, World War II | 16,918 | 1,935 ms | 1,790 ms | 128 ms |
| WHATWG HTML, parsing chapter | 15,024 | 1,514 ms | 1,608 ms | 81 ms |
| generated app page | 293 | 34 ms (+24 ms to inject the source) | — | — |
6.3 The floor: reading the page
What any engine must pay to see the same facts, on the same pages:
| Page | CDP DOMSnapshot.captureSnapshot (27 styles, rects, paint order) |
in-page walk: 27 computed styles + one rect per element | text-node rects |
|---|---|---|---|
| MDN | 30 ms | 34 ms | 2 ms |
| Wikipedia | 248 ms | 174 ms | 13 ms |
| WHATWG | 269 ms | 82 ms | 14 ms |
The in-page walk is cheaper than the CDP snapshot because the snapshot also serialises and ships every string to the client. That decides the architecture (chapter 2): collect in the page.
6.4 Where the time goes inside a run
From axe's own performanceTimer option (one run per page, Citadel tags):
| Page | audit | inside rules | gather | matches | checks | outside rules |
|---|---|---|---|---|---|---|
| MDN | 266 ms | 256 ms | 19 | 83 | 151 | 9 ms |
| Wikipedia | 1,708 ms | 1,698 ms | 129 | 532 | 1,032 | 9 ms |
| WHATWG | 1,236 ms | 1,228 ms | 75 | 360 | 790 | 8 ms |
Top rules by share of the audit:
| Page | 1st | 2nd | 3rd |
|---|---|---|---|
| MDN | color-contrast 56% | target-size 10% | label-content-name-mismatch 7% |
| Wikipedia | color-contrast 50% | target-size 13% | link-in-text-block 11% |
| WHATWG | color-contrast 65% | link-in-text-block 9% | target-size 7% |
6.5 What this means
- Rule evaluation is 7–11× the cost of reading the page, so an engine that reads once and evaluates over a flat snapshot has room for a large speed-up.
- Three geometry rules account for 70–80% of the time. They decide the headline; the other 67 rules decide correctness.
- Small pages are the open risk: 34 ms, with 24 ms more to parse the injected script. Claiming 2× there needs instantiation plus evaluation under about 17 ms.