-
-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance degredation #385
Comments
After 2.1.0 (released 3 weeks ago), we have |
So far I tested two points in time where the performance issue is already present. As I can't build tag 2.0.1 because of an issue with libxml that got patched between 2.0.1 and 2.1.0, I had to use a specific commit hash. These versions already have the performance degredation in place: ❌ Tag 2.1.0 ✅ The last upstream commit that we use on Herd was this: cf198e0 Building PHP 8.3.4 on this specific commit does not have the performance issue. So the issue seems to have been introduced between the 2.0.0 RC and the stable 2.0.0 release. |
Oh I found it. Just because Herd is using Maybe it's time to resolve #377 and #382 (for passing in custom compilation flags) as soon as possible. 🤔 |
Ah yeah. Well I also wouldn't mind if there would be a simple argument to re-add the optimization flags 🤷♂️ |
After a week of various attempts, I finally decided with difficulty to give up this plan: change all parameters to environment variables. Mainly because I can't figure out which ones need to be customized frequently and which ones don't. There is no scope here. For this topic only, I think we can maintain a customizable compilation parameter variable table in the document, for example:
|
Sounds good to me @crazywhalecc |
@mpociot I won't change current build flags. For Laravel Herd macOS, the best way is just using This update will be completed within a week and will have 2.2.0 as the version number.
|
Great, thank you! Is this already implemented? |
WIP, but env vars for MacOSBuilder have already finished. I'm finishing up the Linux part now. |
Finished, docs: https://static-php.dev/en/guide/env-vars.html |
For Laravel Herd, we compile the current versions of PHP with a version of static-php-cli from December 2023.
After upgrading to the latest version on the
main
branch, I notice a significant performance decrease with the compiled version of PHP.I noticed this by running the Laravel 11 test suite. One test in particular https://github.com/laravel/framework/blob/11.x/tests/Support/SupportStrTest.php#L589-L602
Used extensions/build parameters:
To reproduce the issue:
git clone https://github.com/laravel/framework.git cd framework composer update php vendor/bin/phpunit tests/Support/SupportStrTest.php --filter=testWhetherTheNumberOfGeneratedCharactersIsEquallyDistributed
Test results
PHP 8.3.4 compiled with the version of
static-php-cli
from December 2023:PHP 8.3.4 compiled with the current main branch
Edit: I'll go through some tagged versions locally using the build arguments to see which version introduced this bug
The text was updated successfully, but these errors were encountered: