We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b53ab1 commit 083f975Copy full SHA for 083f975
test/performance/performance-test-helpers.ts
@@ -104,6 +104,12 @@ export function assertPerformance(
104
maxErrors?: number;
105
}
106
): void {
107
+ if (process.env.CI) {
108
+ // CI can be slow, so we relax the throughput requirements plenty - we'll still spot this locally
109
+ // or spot enormous CI regressions (and we can still monitor trends regardless).
110
+ thresholds.minThroughput = thresholds.minThroughput ? thresholds.minThroughput * 0.6 : undefined;
111
+ }
112
+
113
if (thresholds.minThroughput !== undefined) {
114
expect(result.throughput).to.be.greaterThan(
115
thresholds.minThroughput,
0 commit comments