(overrides: Partial<BenchmarkMetricResult>)
| 21 | } |
| 22 | |
| 23 | function 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 | |
| 40 | function runResult(results: BenchmarkMetricResult[]): BenchmarkRunResult { |
| 41 | return { |
no outgoing calls
no test coverage detected