MCPcopy
hub / github.com/vitest-dev/vitest / benchmark.ts

File benchmark.ts

packages/vitest/src/runtime/benchmark.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import type { Test } from '@vitest/runner'
2import type { BenchFunction, BenchmarkAPI, BenchOptions } from './types/benchmark'
3import { getCurrentSuite } from '@vitest/runner'
4import { createChainable } from '@vitest/runner/utils'

Callers

nothing calls this directly

Calls 5

getWorkerStateFunction · 0.90
getCurrentSuiteFunction · 0.90
createBenchmarkFunction · 0.85
formatNameFunction · 0.70
setMethod · 0.45

Tested by

no test coverage detected