franccan
Forum Replies Created
-
Hi Bert,
I’ve also created this issue describing the problem in more detail.
https://github.com/WordPress/gutenberg/issues/24893
Regards,
Francisco
Hi I thought of tracing PHP just to see what the OS was doing and it seems the new version reads a lot more times from the file system
– fstat/stat present when tracing v5.5 home page: 87
– fstat/stat present when tracing in v5.4 home page: 9This is related to many additional .json files being loaded in v5.5 which was not the case for v5.4. -> https://github.com/WordPress/WordPress/blob/master/wp-includes/blocks.php#L190
Hi Yui,
Thanks for your response but I think that there is something causing the new version to respond slower.
Take a look at the example below, this a new fresh install using OPCache. WordpPress v5.4 used to load in about 22ms and WordpPress v5.5 is now taking close to 150-200ms. (6-10x slower) Same server, same storage, same client.
Disabling OPCache produces similar but less dramatic results: v5.4 loads in about 600ms and v5.5 in about 1,300ms (2X slower)
[ec2-user@ip-172-31-45-146 html]$ cat wp54/wp-includes/version.php | grep '$wp_version =' $wp_version = '5.4.2'; [ec2-user@ip-172-31-45-146 html]$ cat wp55/wp-includes/version.php | grep '$wp_version =' $wp_version = '5.5'; [ec2-user@ip-172-31-45-146 html]$ cat /etc/php.d/10-opcache.ini | grep opcache.enable= opcache.enable=1
[ec2-user@ip-172-31-45-146 html]$ for i in {1..10}; do curl -o /dev/null -s -w "%{time_starttransfer}\n" https://127.0.0.1/wp54/; done 0.026642 0.025308 0.028559 0.024185 0.025022 0.026277 0.034598 0.022461 0.034280 0.025716 [ec2-user@ip-172-31-45-146 html]$ for i in {1..10}; do curl -o /dev/null -s -w "%{time_starttransfer}\n" https://127.0.0.1/wp55/; done 0.219753 0.190224 0.188829 0.189912 0.181504 0.183236 0.189652 0.188126 0.207370 0.208778
[ec2-user@ip-172-31-45-146 html]$ cat /etc/php.d/10-opcache.ini | grep opcache.enable= opcache.enable=0 [ec2-user@ip-172-31-45-146 html]$ for i in {1..10}; do curl -o /dev/null -s -w "%{time_starttransfer}\n" https://127.0.0.1/wp55/; done 1.944018 1.415046 1.444394 1.391490 1.391182 1.385474 1.341410 1.325611 1.381883 1.397277 [ec2-user@ip-172-31-45-146 html]$ for i in {1..10}; do curl -o /dev/null -s -w "%{time_starttransfer}\n" https://127.0.0.1/wp54/; done 0.918116 0.659779 0.640934 0.618937 0.613510 0.641750 0.617641 0.608814 0.611889 0.649169