unjs
magic-regexp
BlogDocsChangelog

test: add benchmark with vitest + codspeed

#363Merged
Merging
test/benchmark
into
main
CodSpeed Performance Gauge
N/A
New
6

Benchmarks

New

respects how users import library
test/transform.bench.ts::transformer: magic-regexp
CodSpeed Performance Gauge
N/A
N/A3.6 ms
preserves context for dynamic regexps
test/transform.bench.ts::transformer: magic-regexp
CodSpeed Performance Gauge
N/A
N/A3 ms
statically replaces regexps where possible
test/transform.bench.ts::transformer: magic-regexp
CodSpeed Performance Gauge
N/A
N/A4.1 ms
ignores non-JS files
test/transform.bench.ts::transformer: magic-regexp
CodSpeed Performance Gauge
N/A
N/A614 µs
transforms vue script blocks
test/transform.bench.ts::transformer: magic-regexp
CodSpeed Performance Gauge
N/A
N/A8.3 ms
ignores code without imports from magic-regexp
test/transform.bench.ts::transformer: magic-regexp
CodSpeed Performance Gauge
N/A
N/A657.4 µs

Commits

Click on a commit to change the comparison range
No baseline data is yet availableOnce your main branch has generated a first performance report, you will see the list of commits and their performance impact here.
© 2025 CodSpeed Technology
Home Terms Privacy Docs