Skip to content

About

Benchmark matrix for eslint-plugin-better-tailwindcss × Tailwind CSS changes

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

better-tailwindcss-bench

Benchmarks eslint-plugin-better-tailwindcss and Tailwind CSS changes.

Matrix

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.

Usage

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 cell

Output

Each 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.

About

Benchmark matrix for eslint-plugin-better-tailwindcss × Tailwind CSS changes

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages