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

Function comparableThreshold

scripts/compare-release-benchmarks.ts:171–179  ·  view source on GitHub ↗
(
  baseResult: BenchmarkMetricResult | undefined,
  headResult: BenchmarkMetricResult | undefined,
)

Source from the content-addressed store, hash-verified

169}
170
171function comparableThreshold(
172 baseResult: BenchmarkMetricResult | undefined,
173 headResult: BenchmarkMetricResult | undefined,
174) {
175 if (headResult?.threshold) {
176 return headResult.threshold;
177 }
178 return baseResult?.threshold;
179}
180
181/** Compare two benchmark snapshots and mark only material regressions as failures. */
182export function compareBenchmarkRuns(

Callers 1

compareBenchmarkRunsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected