( baseResult: BenchmarkMetricResult | undefined, headResult: BenchmarkMetricResult | undefined, )
| 169 | } |
| 170 | |
| 171 | function 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. */ |
| 182 | export function compareBenchmarkRuns( |
no outgoing calls
no test coverage detected