Benchmarks eslint-plugin-better-tailwindcss and Tailwind CSS changes.
Two axes, four variants. Benchmark output labels both axes explicitly — epbt is
eslint-plugin-better-tailwindcss, tw is Tailwind — while the directories under variants/ are
named <plugin>-<tailwind>:
tw-now |
tw-patched |
|
|---|---|---|
epbt-now |
current-current |
current-patched |
epbt-patched |
patched-current |
patched-patched |
Second dimension, generated codebases (each 120 files × 20 literals by default):
- repetitive — every literal drawn from 10 fixed class lists. Upper bound for caching.
- mixed — ~45% distinct literals, matching the shape of a production codebase (sampled at 45.7%).
- unique — every literal distinct. Lower bound: zero cache hits.
pnpm setup # generate variants/ from bench.config.json and install
pnpm generate # generate codebases/ (deterministic, seeded)
pnpm bench # run the matrix, print tables, save results/<timestamp>.json
pnpm bench -r 3 # median of 3 runs per cellEach cell runs in a fresh child process — a cold run, the way CI and one-shot lints pay it: empty caches, worker spawn, Tailwind's lazy lookup-table build. Two passes are measured:
- parse baseline — all files with no rules enabled (pure parser cost, warms nothing)
- cold run — all files with the plugin rules enabled
The headline table is plugin cost = cold run − parse baseline; the total table is the raw cold run. Message counts are printed as a sanity check: they must match across variants that share a Tailwind version.