# The benchmark The benchmark has 26 repos, with 600 answer-key classes: 20 train repos (416 classes) and 6 test repos (184 classes). Each repo is a snapshot of a JavaScript or TypeScript library at a cutoff commit, plus an answer key of the real bug fixes that the maintainers made after the cutoff. Each class has a repro that exits 1 on the snapshot and on the parent of its fix, and 0 on the fix commit. Every repo in [`bench/`](../bench/) has a `manifest.json` that rebuilds its snapshot from the upstream git URL. To add a repo, see [adding-a-benchmark.md](./adding-a-benchmark.md). Use the train split to tune the workers and their briefs. Keep the test split for the final measurement. ## Repos "Classes" is the number of lines in the answer key. "Weak" lists the classes whose repro fails on the snapshot for a reason other than the one the fix addresses, or whose repro checks configuration rather than behavior. "Contaminated" lists the classes whose fix was authored before the model cutoff (see the policy below). "Cutoff date" is the commit date of the cutoff commit. | Repo | Upstream | Split | Kind | Classes | Weak | Contaminated | Cutoff date | | -------------------------------------- | ------------------------- | ----- | ------------------ | ------: | ---------------------- | ----------------------- | ----------- | | [charts](../bench/charts/) | TanStack/charts | train | renderer | 12 | - | - | 2026-09-30 | | [devtools](../bench/devtools/) | TanStack/devtools | train | dev-server tooling | 10 | - | - | 2026-07-22 | | [emittery](../bench/emittery/) | sindresorhus/emittery | train | async-emitter | 17 | - | E1, E2, E3, E4, E5, E17 | 2025-06-20 | | [fast-uri](../bench/fast-uri/) | fastify/fast-uri | train | parser | 27 | F9, F13, F16, F26, F27 | - | 2026-08-06 | | [highlight](../bench/highlight/) | TanStack/highlight | train | syntax-highlighter | 24 | - | - | 2026-07-27 | | [hotkeys](../bench/hotkeys/) | TanStack/hotkeys | train | keyboard-input | 32 | - | - | 2026-10-15 | | [ical.js](../bench/ical.js/) | kewisch/ical.js | train | parser | 13 | - | - | 2026-09-16 | | [intent](../bench/intent/) | TanStack/intent | train | cli | 17 | - | - | 2026-07-01 | | [js-yaml](../bench/js-yaml/) | nodeca/js-yaml | train | parser | 22 | Y18, Y23 | - | 2026-07-02 | | [markdown](../bench/markdown/) | TanStack/markdown | train | parser | 32 | - | - | 2026-07-22 | | [minimatch](../bench/minimatch/) | isaacs/minimatch | train | glob-matcher | 11 | M10, M11 | - | 2026-10-27 | | [nanostores](../bench/nanostores/) | nanostores/nanostores | train | reactive-store | 13 | - | N3, N5, N6, N7 | 2026-04-30 | | [ocache](../bench/ocache/) | unjs/ocache | train | cache | 42 | - | - | 2026-07-08 | | [p-queue](../bench/p-queue/) | sindresorhus/p-queue | train | async-queue | 22 | - | - | 2026-10-11 | | [pacer](../bench/pacer/) | TanStack/pacer | train | scheduler | 13 | P13 | - | 2026-08-06 | | [redact](../bench/redact/) | TanStack/redact | train | ui-renderer | 29 | - | - | 2026-07-12 | | [strtok3](../bench/strtok3/) | Borewit/strtok3 | train | stream tokenizer | 18 | - | - | 2026-10-11 | | [tempura](../bench/tempura/) | lukeed/tempura | train | template-compiler | 13 | - | - | 2026-10-19 | | [virtual](../bench/virtual/) | TanStack/virtual | train | scroll-virtualizer | 23 | - | - | 2026-07-01 | | [z-schema](../bench/z-schema/) | zaggino/z-schema | train | validator | 26 | - | - | 2026-08-13 | | [marked](../bench/marked/) | markedjs/marked | test | parser | 76 | - | - | 2026-07-09 | | [mobx](../bench/mobx/) | mobxjs/mobx | test | reactive-store | 18 | M10 | - | 2026-08-02 | | [node-cron](../bench/node-cron/) | node-cron/node-cron | test | scheduler | 21 | - | - | 2026-07-02 | | [p-map](../bench/p-map/) | sindresorhus/p-map | test | async-concurrency | 15 | - | - | 2026-07-20 | | [query-string](../bench/query-string/) | sindresorhus/query-string | test | parser | 34 | - | - | 2026-08-06 | | [rou3](../bench/rou3/) | h3js/rou3 | test | router | 20 | - | - | 2026-07-02 | In total, 11 classes are weak and 10 are contaminated. Report scores both with and without these classes. The 9 TanStack repos (charts, devtools, highlight, hotkeys, intent, markdown, pacer, redact, virtual) and the 12 other repos from the same batch were built with the current process. The 5 older repos (emittery, nanostores, p-queue, query-string, rou3) come from earlier keys. Their repros were ported to the current repro convention with the same tests; see their `NOTES.md`. The cutoffs of emittery (2025-06-20) and nanostores (2026-04-30) are before 2026-07-01, so their snapshot code can be in training data. Their classes with fixes authored before 2026-07-01 are marked contaminated. ## Contamination policy A worker that has seen a fix in its training data can "find" the bug from memory. The benchmark then measures recall of training data, not bug finding. To prevent this: 1. **The author-date rule.** A class counts only if the author date of its fix is on or after the model cutoff in force. For the current model generation, that date is **2026-07-01**. Use the author date (`git log -1 --format=%ad `), not the committer date: a rebase or squash merge can give an old fix a new committer date. The cutoff commit itself must also be dated on or after the model cutoff. 2. **Marking.** A class that breaks the rule (for example, a class kept from an older key) is marked `| contaminated ()` on its key line and listed in the manifest's `contaminated` array. Results must be reported with and without contaminated classes. A new key should have no contaminated classes. 3. **Keys are private, fixes are public.** The answer keys are kept out of this repository (decision by Kyle Mathews, 2026-11-23), but the upstream fixes are public, so a later model can be trained on them. When a new model generation has a later training cutoff, all current keys become contaminated for that generation. Each new model generation therefore needs fresh keys: new cutoffs and new fixes authored after that model's cutoff, built and verified with the process in [adding-a-benchmark.md](./adding-a-benchmark.md). Change the date in rule 1 to the new model cutoff when you build them. Keep the old keys for comparisons with earlier runs, but do not use them to measure a model whose training cutoff is after their fixes.