Skip to content

Commit 25b48ba

Browse files
committed
More lenient phpbench assertions
1 parent 3460d1a commit 25b48ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/bench/RegressionBench.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
#[Bench\Warmup(revs: 1)]
1111
#[Bench\RetryThreshold(retryThreshold: 10.0)]
1212
#[Bench\Assert(expression: '
13-
(mode(baseline.time.avg) < 50 milliseconds and mode(variant.time.avg) < mode(baseline.time.avg) +/- 25%)
14-
or (mode(baseline.time.avg) >= 50 milliseconds and mode(baseline.time.avg) < 500 milliseconds and mode(variant.time.avg) < mode(baseline.time.avg) +/- 10%)
13+
(mode(baseline.time.avg) < 100 milliseconds and mode(variant.time.avg) < mode(baseline.time.avg) +/- 50%)
14+
or (mode(baseline.time.avg) >= 100 milliseconds and mode(baseline.time.avg) < 500 milliseconds and mode(variant.time.avg) < mode(baseline.time.avg) +/- 25%)
1515
or (mode(baseline.time.avg) >= 500 milliseconds and mode(variant.time.avg) < mode(baseline.time.avg) +/- 5%)')]
1616
class RegressionBench extends BenchCase
1717
{

0 commit comments

Comments
 (0)