Skip to content

Commit a0d180e

Browse files
committed
Expect the numbers the Benchmarks workflow measured
Taken from the tally-results artifact of the workflow's first run, so later runs compare with numbers of the same image and PHP build. Amp-Thread-ID: https://ampcode.com/threads/T-01a1d9be-190b-7065-bc04-21b38804941c
1 parent 53be16f commit a0d180e

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎benchmarks/LexerBench.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use PHPStan\PhpDocParser\Lexer\Lexer;
66
use PHPStan\PhpDocParser\ParserConfig;
77
use Tally\Attribute\Before;
8+
use Tally\Attribute\Expected;
89
use Tally\Attribute\Warmup;
910

1011
/**
@@ -27,6 +28,7 @@ public function prepare(): void
2728
}
2829

2930
#[Warmup(1)]
31+
#[Expected(instructions: '25.27M', cycles: '26.59M', memory: '108.0KiB')]
3032
public function benchTokenizeTypicalPhpDocs(): void
3133
{
3234
foreach ($this->phpDocs as $phpDoc) {

‎benchmarks/SymfonyConfigReferenceBench.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use PHPStan\PhpDocParser\Parser\TypeParser;
1010
use PHPStan\PhpDocParser\ParserConfig;
1111
use Tally\Attribute\Before;
12+
use Tally\Attribute\Expected;
1213
use Tally\Attribute\Warmup;
1314

1415
/**
@@ -38,6 +39,7 @@ public function prepare(): void
3839
}
3940

4041
#[Warmup(1)]
42+
#[Expected(instructions: '98.66M', cycles: '112.5M', memory: '4.123MiB')]
4143
public function benchParse(): void
4244
{
4345
foreach ($this->phpDocs as $phpDoc) {

0 commit comments

Comments
 (0)