Skip to content

Update phpbench baseline#5492

Merged
staabm merged 1 commit intophpstan:2.1.xfrom
staabm:base
Apr 18, 2026
Merged

Update phpbench baseline#5492
staabm merged 1 commit intophpstan:2.1.xfrom
staabm:base

Conversation

@staabm
Copy link
Copy Markdown
Contributor

@staabm staabm commented Apr 18, 2026

benchmarked the 2 biggestest offenders by phpbench in hyperfine

2.1.x@e905481:

➜  phpstan-src git:(2.1.x) ✗ hyperfine 'bin/phpstan analyze bug-10979.php' 'bin/phpstan analyze bug-4308.php' --warmup=2 -i
Benchmark 1: bin/phpstan analyze bug-10979.php
  Time (mean ± σ):      1.783 s ±  0.005 s    [User: 1.376 s, System: 0.348 s]
  Range (min … max):    1.776 s …  1.790 s    10 runs
 
Benchmark 2: bin/phpstan analyze bug-4308.php
  Time (mean ± σ):      1.158 s ±  0.002 s    [User: 0.798 s, System: 0.341 s]
  Range (min … max):    1.155 s …  1.164 s    10 runs

and on 2.1.49:

➜  phpstan-src git:(a25e50956f) ✗ hyperfine 'bin/phpstan analyze bug-10979.php' 'bin/phpstan analyze bug-4308.php' --warmup=2 -i
Benchmark 1: bin/phpstan analyze bug-10979.php
  Time (mean ± σ):      1.695 s ±  0.004 s    [User: 1.235 s, System: 0.354 s]
  Range (min … max):    1.687 s …  1.703 s    10 runs
 
Benchmark 2: bin/phpstan analyze bug-4308.php
  Time (mean ± σ):      1.166 s ±  0.004 s    [User: 0.808 s, System: 0.346 s]
  Range (min … max):    1.159 s …  1.170 s    10 runs

in bug-10979.php we lost 80ms, which I think is good enough. will update the baseline

@staabm staabm merged commit a285ed2 into phpstan:2.1.x Apr 18, 2026
357 of 363 checks passed
@staabm staabm deleted the base branch April 18, 2026 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant