Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Dec 21, 2025

before this PR:

➜  phpstan-src git:(2.1.x) ✗ hyperfine 'bin/phpstan analyze foob.php' -i
Benchmark 1: bin/phpstan analyze foob.php
  Time (mean ± σ):      1.114 s ±  0.009 s    [User: 0.752 s, System: 0.267 s]
  Range (min … max):    1.105 s …  1.128 s    10 runs
 
  Warning: Ignoring non-zero exit code.

after this PR:

➜  phpstan-src git:(neon-cache) ✗ hyperfine 'bin/phpstan analyze foob.php' -i
Benchmark 1: bin/phpstan analyze foob.php
  Time (mean ± σ):     992.7 ms ±  61.0 ms    [User: 679.0 ms, System: 265.5 ms]
  Range (min … max):   938.9 ms … 1077.7 ms    10 runs
 
  Warning: Ignoring non-zero exit code.

similar to #4645


before this PR we read&decoded 46 NEON files in the above example.
after this PR we only need 28.

@ondrejmirtes ondrejmirtes merged commit 832371b into phpstan:2.1.x Dec 21, 2025
637 of 641 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

@staabm staabm deleted the neon-cache branch December 21, 2025 09:41
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.

2 participants