MCPcopy Index your code
hub / github.com/anomalyco/opencode / profile-test-files.ts

File profile-test-files.ts

packages/opencode/script/profile-test-files.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// Per-file profiler for finding candidate test-speed work; see ../../perf/test-suite.md
2// for the benchmark notes, kept wins, and discarded experiments.
3// Example: TEST_PROFILE_GLOB='test/server/**/*.test.ts' TEST_PROFILE_TOP=15 bun run profile:test
4const pattern = Bun.env.TEST_PROFILE_GLOB ?? "test/**/*.test.{ts,tsx}"

Callers

nothing calls this directly

Calls 5

spawnMethod · 0.80
pushMethod · 0.80
textMethod · 0.65
allMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected