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

Function relativeDelta

scripts/compare-release-benchmarks.ts:164–169  ·  view source on GitHub ↗
(baseMedian: number, headMedian: number)

Source from the content-addressed store, hash-verified

162}
163
164function relativeDelta(baseMedian: number, headMedian: number) {
165 if (baseMedian === 0) {
166 return headMedian === 0 ? 0 : Number.POSITIVE_INFINITY;
167 }
168 return headMedian / baseMedian - 1;
169}
170
171function comparableThreshold(
172 baseResult: BenchmarkMetricResult | undefined,

Callers 1

compareBenchmarkRunsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected