This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Microbenchmark: Comment `loc` access patterns with reset cycles | |
| // Simulates oxlint lifecycle: pool init → for each file { reset → access loc ×10 → reset } | |
| import { performance } from "node:perf_hooks"; | |
| // ── helpers ────────────────────────────────────────────────────────────────── | |
| function computeLoc(start, end) { | |
| return { | |
| start: { line: start, column: 0 }, |