MCPcopy Create free account
hub / github.com/modem-dev/hunk / metric

Function metric

scripts/compare-release-benchmarks.test.ts:23–38  ·  view source on GitHub ↗
(overrides: Partial<BenchmarkMetricResult>)

Source from the content-addressed store, hash-verified

21}
22
23function metric(overrides: Partial<BenchmarkMetricResult>): BenchmarkMetricResult {
24 return {
25 name: "large-stream/cold_first_frame_ms",
26 source: "large-stream",
27 unit: "ms",
28 samples: [100, 101, 99],
29 median: 100,
30 p75: 101,
31 p95: 101,
32 min: 99,
33 max: 101,
34 comparable: true,
35 threshold: { maxRegressionRatio: 1.15, minAbsoluteRegression: 5 },
36 ...overrides,
37 };
38}
39
40function runResult(results: BenchmarkMetricResult[]): BenchmarkRunResult {
41 return {

Calls

no outgoing calls

Tested by

no test coverage detected