---
title: "7. Benchmark method · glance"
description: "Follows the programme's benchmark rules (same machine, pinned versions, warmups, median of 5, raw JSONL committed, charts generated from the JSONL)."
canonical: "https://glance.avarok.net/docs/design/07-bench/"
lastmod: "2026-12-01T16:58:43Z"
tokens: 1165
---

1. [Docs](https://glance.avarok.net/docs/)
2. [Design](https://glance.avarok.net/docs/design/)

# 7\. Benchmark method

@avarok/glance@0.1.0·Updated 2026-12-01·2 min read·[View as markdown](https://glance.avarok.net/docs/design/07-bench/index.md)

Follows the programme's benchmark rules (same machine, pinned versions, warmups, median of 5, raw JSONL committed, charts generated from the JSONL).

## 7.1 Workloads

| id               | Page                           | Elements | Why                              |
| ---------------- | ------------------------------ | -------- | -------------------------------- |
| `wiki-ww2`       | Wikipedia, World War II        | \~17k    | headline: a long document page   |
| `whatwg-parsing` | WHATWG HTML, parsing chapter   | \~15k    | dense spec page, many links      |
| `mdn-elements`   | MDN HTML elements reference    | \~2.5k   | medium docs page with app chrome |
| `app-small`      | generated 300-element app page | \~300    | the small-page risk              |

Pages are recorded once to HAR (`bench/pages/*.har`, gitignored; the recording script and the URL list are committed) and replayed with all other requests aborted.

## 7.2 Configurations

- `citadel-tags`: `runOnly` tags wcag2a, wcag2aa, wcag21a, wcag21aa, wcag22aa (headline).
- `default`: no options, so every rule each engine implements. Reported with the rule counts beside it, because the two engines then run different rule sets.
- `full`: `runOnly` every rule the engine lists (`axe.getRules()`), rule counts beside it.
- `common`: `runOnly` the rules both engines list, the one configuration that runs the same rule set under both. The README headline is this configuration in exact mode.
- `common-fast`: `common` with `fast: true`, glance's fast mode (docs/COMPAT-FAST.md), measured under glance only (axe-core has no fast mode). Its speed-up is against axe-core under `common`, and it is always labelled as fast mode, never the headline.

## 7.3 Measured

- `inject_ms`: `page.evaluate(source)` wall time.
- `run_ms`: `axe.run` wall time inside the page (`performance.now()`), fresh page load per sample, one warmup then median of 5.
- `end_to_end_ms`: inject plus run, which is what a Playwright test pays.
- Load average beside every row; rows with a 1-minute load above 8 are discarded and rerun.
- `rules`: the rules that ran, each counted once (lines before 2026-12-02 counted a rule once per result group its nodes landed in); `nodes`: the violations, passes and incomplete node counts. whole.md's "counts match" compares those three node counts with axe-core's.

## 7.4 Pinned

axe-core 4.14.1, Playwright 1.65.1, the Chrome Headless Shell build Playwright 1.65.1 installs, Node version from `.nvmrc`, viewport 1280×900. Machine model and core count are recorded in each JSONL line.

## 7.5 Output

`bench/whole/run.mjs` appends to `bench/results/whole-<date>.jsonl`, one line per (workload, configuration, engine). `scripts/bench-charts.mjs` reads the files `bench/charts.json` lists under `inputs` and writes the light and dark SVG charts (`assets/bench-whole{,-dark}.svg`), the full table (`bench/results/whole.md`) and the README's numbers between its `bench-<name>` markers (`bench/whole/readme.mjs`: the badge, the Benchmarks summary, the Speed row, the limits bullet and the FAQ answer). CI reruns the script and fails on any diff in those files, so a new result is published by adding its JSONL to `inputs` and committing what the script writes.

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@id": "https://thomaspbraun.com/#person",
      "@type": "Person",
      "name": "Thomas Braun",
      "sameAs": [
        "https://github.com/tbraun96",
        "https://x.com/tbraun96"
      ],
      "url": "https://thomaspbraun.com",
      "worksFor": {
        "@type": "Organization",
        "name": "Avarok",
        "url": "https://avarok.net"
      }
    },
    {
      "@id": "https://glance.avarok.net/docs/design/07-bench/",
      "@type": "WebPage",
      "author": {
        "@id": "https://thomaspbraun.com/#person"
      },
      "dateModified": "2026-12-01T16:58:43Z",
      "description": "Follows the programme's benchmark rules (same machine, pinned versions, warmups, median of 5, raw JSONL committed, charts generated from the JSONL).",
      "inLanguage": "en",
      "isPartOf": {
        "@id": "https://glance.avarok.net/#website",
        "@type": "WebSite",
        "name": "glance",
        "url": "https://glance.avarok.net/"
      },
      "name": "7. Benchmark method · glance",
      "url": "https://glance.avarok.net/docs/design/07-bench/"
    }
  ]
}
```
