Slow php 8.0.26 performance
I run a very simple benchmark script link with count increased by 100 to get larger values. On the same system running CentOS 7 and Alpine 3.16 as containers with both having php 8.0.26 I got 28.478 sec for CentOS and 39.605 sec for Alpine 3.16 ( the actual run time is not important - the values are for an older system - on a modern Xeon based system it takes about 17 sec. - the important value is the ratio between the run times - in this case Alpine was close to 40% slower ).
I rerun the tests a number of time and the numbers stay in the same range - this is a very large difference - my speculation is that either the CentOS gcc produces better code or some optimization flags were not set when compiling php on Alpine. Hope somebody will be able to reproduce my results and the maintainer of php will be able to take some actions if possible at all.
Here is how I run the test:
`wget https://github.com/vanilla-php/benchmark-php/archive/refs/tags/1.6.tar.gz
tar xzf 1.6.tar.gz
cd benchmark-php-1.6
sed -i 's/= 99999/= 9999999/' benchmark.php
time php ./benchmark.php `