MCPcopy Create free account
hub / github.com/Rich-Harris/magic-string / magic-string.bench.ts

File magic-string.bench.ts

benchmark/magic-string.bench.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// No regression gate yet: `writeResult` + `bench.from()` can store baselines, but CI-runner noise needs a designated baseline environment first.
2/* eslint-disable test/consistent-test-it -- the rule mistakes the context's `bench.compare()` for a `test` call */
3import fs from 'node:fs'
4import { it } from 'vitest'

Callers

nothing calls this directly

Calls 15

freshFunction · 0.85
editedFunction · 0.85
storeNamesFunction · 0.85
replaceAllMethod · 0.80
generateMapMethod · 0.45
generateDecodedMapMethod · 0.45
overwriteMethod · 0.45
removeMethod · 0.45
moveMethod · 0.45
appendLeftMethod · 0.45
sliceMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected