Skip to content

Commit 00417d1

Browse files
NullVoxPopuliclaude
andcommitted
Fix camelCase lint error for do_not_optimize import
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 6271cdf commit 00417d1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/parser.bench.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { createRequire } from 'node:module';
1515
import { readFileSync } from 'node:fs';
1616
import { fileURLToPath } from 'node:url';
1717
import { resolve } from 'node:path';
18-
import { run, bench, boxplot, summary, do_not_optimize } from 'mitata';
18+
import { run, bench, boxplot, summary, do_not_optimize as doNotOptimize } from 'mitata';
1919

2020
// ---------------------------------------------------------------------------
2121
// CLI args
@@ -130,17 +130,17 @@ for (const { type, ext, experimentParse, controlParse } of PARSERS) {
130130
boxplot(() => {
131131
summary(() => {
132132
bench(`${type} ${size} (control)`, () => {
133-
for (let i = 0; i < iters; i++) do_not_optimize(controlParse(code, opts));
133+
for (let i = 0; i < iters; i++) doNotOptimize(controlParse(code, opts));
134134
});
135135
bench(`${type} ${size} (experiment)`, () => {
136-
for (let i = 0; i < iters; i++) do_not_optimize(experimentParse(code, opts));
136+
for (let i = 0; i < iters; i++) doNotOptimize(experimentParse(code, opts));
137137
});
138138
});
139139
});
140140
} else {
141141
// Standalone mode — just benchmark the local parsers
142142
bench(`${type} ${size}`, () => {
143-
for (let i = 0; i < iters; i++) do_not_optimize(experimentParse(code, opts));
143+
for (let i = 0; i < iters; i++) doNotOptimize(experimentParse(code, opts));
144144
});
145145
}
146146
}

0 commit comments

Comments
 (0)