> For AI agents: the complete documentation index is available at https://gabrielcsapo.github.io/lintrs/llms.txt, the full documentation bundle is available at https://gabrielcsapo.github.io/lintrs/llms-full.txt.

# Benchmarks

Two suites on date-fns. Numbers come from `docs/bench/results.json`, produced
by `npm run bench` (harness in `bench/`).


### typescript-eslint recommendedTypeChecked

An existing typed ESLint config, unchanged.

- 1,228 files
- `typescript-eslint recommendedTypeChecked on src/**/*.ts (tests excluded), parserOptions.project`
- baseline: ESLint

Wall timemedian; the line underneath marks min–max; shorter is better

- ESLint**2.98 s**baseline
- lintrs**3.63 s**1.22× slower
- lintrs (in-process)**3.52 s**1.18× slower

Peak memorymedian RSS; shorter is better

- ESLint**987 MB**baseline
- lintrs**670 MB**−32%
- lintrs (in-process)**652 MB**−34%

- **lintrs** vs ESLint: same diagnostics; 3 message text differences
- **lintrs (in-process)** vs ESLint: same diagnostics; 3 message text differences

All numbers

| Scenario | Description | Wall median | Wall min–max | Peak RSS median | Messages |
| --- | --- | --- | --- | --- | --- |
| ESLint | eslint CLI, no cache | 2.98 s | 2.94 s – 3.01 s | 987 MB | 581 |
| lintrs | lintrs CLI, default transport (tsrs session in a child process) | 3.63 s | 3.52 s – 3.72 s | 670 MB | 581 |
| lintrs (in-process) | lintrs CLI with the in-process Node-API binding | 3.52 s | 3.44 s – 3.56 s | 652 MB | 581 |

### One custom typed rule: JS vs Rust

A single rule that asks the checker for the type of every call expression and reports unions, written once in JS and once in Rust.

- 1,228 files
- `bench/call-returns-union on src/**/*.ts (tests excluded), parserOptions.project`
- baseline: ESLint (JS rule)

Wall timemedian; the line underneath marks min–max; shorter is better

- ESLint (JS rule)**2.14 s**baseline
- lintrs (JS rule)**1.00 s**2.14× faster
- lintrs (Rust rule)**0.65 s**3.29× faster

Peak memorymedian RSS; shorter is better

- ESLint (JS rule)**937 MB**baseline
- lintrs (JS rule)**351 MB**−63%
- lintrs (Rust rule)**309 MB**−67%

- **lintrs (JS rule)** vs ESLint (JS rule): 7 only in this scenario
- **lintrs (Rust rule)** vs ESLint (JS rule): 7 only in this scenario

All numbers

| Scenario | Description | Wall median | Wall min–max | Peak RSS median | Messages |
| --- | --- | --- | --- | --- | --- |
| ESLint (JS rule) | eslint CLI running the JS rule | 2.14 s | 2.11 s – 2.17 s | 937 MB | 355 |
| lintrs (JS rule) | lintrs in-process running the same JS rule | 1.00 s | 0.96 s – 1.01 s | 351 MB | 362 |
| lintrs (Rust rule) | lintrs in-process running the rule written in Rust (library already built and cached) | 0.65 s | 0.62 s – 0.66 s | 309 MB | 362 |


## Reading the results

- **Stock typed rules**: lintrs is currently slower than ESLint and uses less
  memory, with the same diagnostics. The difference is moving each type
  answer from the Rust checker into the objects these JS rules expect, not the
  checker or the rules; see
  [why](https://gabrielcsapo.github.io/lintrs/guide/limitations.md#typed-javascript-rules-are-slower-than-eslint).
  [Profiling](https://gabrielcsapo.github.io/lintrs/guide/profiling.md) shows where it goes per rule (`TIMING=1`).
- **Message text differences** in the stock suite are the order of union
  members in three `no-redundant-type-constituents` messages (`0 | 1 | 2 | 10 | 3 | …` against `0 | 1 | 2 | 3 | … | 10`): the same type, printed in
  TypeScript's internal type order. That order varies between ESLint's own
  runs; lintrs printed it the same way every time.
- **One checker-heavy custom rule**: the JS rule takes less wall time under
  lintrs than ESLint. Its Rust version takes less still.
- **Extra diagnostics** in the custom suite come from TypeScript 7 generic
  inference (date-fns `ResultDate extends Date = DateType` infers a union),
  not a rule bug.

## Methodology

MachineApple M4 Pro, 14 cores, 24 GB, Darwin 25.5.0 arm64Target[date-fns/date-fns](https://github.com/date-fns/date-fns) v4.1.0 (`313b902b9a72`)Runs7 timed after 1 warmup, interleaved between toolsTimer/usr/bin/time -l (wall-clock 'real' and maximum resident set size)CacheESLint --cache off; lintrs's Rust rule library prebuilt in its cache before timingVersionsnode v24.22.3 · lintrs 6a80aa6+working-tree · eslint 9.39.5 · typescript-eslint 8.72.2 · typescript 5.9.3 · oxlint 1.83.0 · tsrs c21a36efGeneratedNovember 25, 2026

Reproduce with the benchmark harness in `bench/`: `npm run bench`.

