Skip to content

Commit 4035ca8

Browse files
committed
Adjust phpbench expectations and remove progress mode for GitHub actions
Signed-off-by: William Desportes <williamdes@wdes.fr>
1 parent 517c860 commit 4035ca8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"phpstan": "@php phpstan analyse",
6868
"psalm": "@php psalm --no-diff",
6969
"phpunit": "@php phpunit --color=always",
70-
"phpbench": "@php phpbench run tests/benchmarks --report=aggregate --progress=dots",
70+
"phpbench": "@php phpbench run tests/benchmarks --report=aggregate",
7171
"test": [
7272
"@phpcs",
7373
"@phpstan",

tests/benchmarks/UtfStringBench.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class UtfStringBench
1919
* @Iterations(20)
2020
* @Revs(4)
2121
* @OutputTimeUnit("milliseconds")
22-
* @Assert("mode(variant.time.avg) < 38 milliseconds +/- 10%")
23-
* @Assert("mode(variant.time.avg) > 20 milliseconds +/- 10%")
22+
* @Assert("mode(variant.time.avg) < 100 milliseconds +/- 10%")
23+
* @Assert("mode(variant.time.avg) > 30 milliseconds +/- 10%")
2424
*/
2525
public function benchBuildUtfString(): void
2626
{
@@ -35,8 +35,8 @@ public function benchBuildUtfString(): void
3535
* @Iterations(2)
3636
* @Revs(2)
3737
* @OutputTimeUnit("microseconds")
38-
* @Assert("mode(variant.time.avg) < 75 microseconds +/- 10%")
39-
* @Assert("mode(variant.time.avg) > 60 microseconds +/- 10%")
38+
* @Assert("mode(variant.time.avg) < 800 microseconds +/- 20%")
39+
* @Assert("mode(variant.time.avg) > 100 microseconds +/- 10%")
4040
*/
4141
public function benchGetCharLength(): void
4242
{

0 commit comments

Comments
 (0)