Skip to content

Commit 4371478

Browse files
committed
no need dyn import now
1 parent 0a489d6 commit 4371478

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

benchmark/grapheme/perf.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
import * as assert from 'node:assert/strict';
2+
import {
3+
group,
4+
summary,
5+
barplot,
6+
bench,
7+
run,
8+
do_not_optimize,
9+
} from 'mitata';
210

311
import Graphemer from 'graphemer';
412
import GraphemeSplitter from 'grapheme-splitter';
@@ -16,15 +24,6 @@ if (isWebWorker) {
1624
await unicodeSegmentation.default();
1725
}
1826

19-
const {
20-
group,
21-
summary,
22-
barplot,
23-
bench,
24-
run,
25-
do_not_optimize,
26-
} = await import('mitata');
27-
2827
const intlSegmenter = new Intl.Segmenter();
2928
const graphemer = new (Graphemer.default || Graphemer)();
3029
const graphemeSplitter = new (GraphemeSplitter.default || GraphemeSplitter)();

0 commit comments

Comments
 (0)