Skip to content

Commit ed94706

Browse files
committed
More lenient bench assertions
1 parent 4e70fc6 commit ed94706

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/bench/RegressionBench.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
#[Bench\Assert(expression: '
1313
(mode(baseline.time.avg) < 100 milliseconds and mode(variant.time.avg) < mode(baseline.time.avg) +/- 50%)
1414
or (mode(baseline.time.avg) >= 100 milliseconds and mode(baseline.time.avg) < 500 milliseconds and mode(variant.time.avg) < mode(baseline.time.avg) +/- 25%)
15-
or (mode(baseline.time.avg) >= 500 milliseconds and mode(variant.time.avg) < mode(baseline.time.avg) +/- 5%)')]
15+
or (mode(baseline.time.avg) >= 500 milliseconds and mode(baseline.time.avg) < 2000 milliseconds and mode(variant.time.avg) < mode(baseline.time.avg) +/- 20%)
16+
or (mode(baseline.time.avg) >= 2000 milliseconds and mode(variant.time.avg) < mode(baseline.time.avg) +/- 10%)
17+
')]
1618
class RegressionBench extends BenchCase
1719
{
1820

0 commit comments

Comments
 (0)