12/3/2023 0 Comments Php 8.1 benchmarkLuckily there are some configuration shorthands available so that it's more easy to set up. The PHP versions used were 7.4.26, 8.0.13 and 8.1.0.Honestly, setting up the JIT is one of the most confusing ways of configuring a PHP extension I've ever seen. Let me know your feedback in the comments! Specifics Thank you for reading and I hope you enjoyed. There seem to be specific scenarios that have sped up but don’t influence big codebases right away. The takeaway for me was that you can’t just take performance increases as an overall increase in speed. Is this the reason for my confusing results? PHP 8.1 was never faster than 8.0 and had varied results.Īfter consulting with some Wordpress experts, they believed that Wordpress just isn’t suited for PHP 8+ currently and that updating would take time. PHP 8.0 would always be faster than 7.4, but the difference wasn’t exactly significant. I tried testing with multiple different K6 options, but each time I would see a similar result. My other testing metrics were using for a typical speed test, and running a generic PHP benchmark script. For more specifics on this script, please see K6’s documentation on constant arrival rate. This script will run for 2 minutes, executing 20 interactions per second. Let response = http.get(WORDPRESS_BLOG_POST_URL) Ĭonst pageTitle = doc.find( 'head title').text() Ĭonst langAttr = doc.find( 'html').attr( 'lang') My goal wasn’t to overwhelm the server, just test the loading times on what a realistically busy period could look like. It was difficult to keep myself from wanting to learn all that K6 has to offer, but let’s save that for another time. The number of options and configurations within K6 is mind-blowing. K6 is load testing software which I’m sure is overkill for the kinds of tests I wanted to run. Next, I installed K6 on my local machine. I’m sure there was a solution out there, but I was more focused on the increase from 8.0 to 8.1. I adjusted the php.ini file slightly, to increase the memory limit and max execution time.īooting up the site, I quickly found out that I wouldn’t be able to run 7.0 -> 7.3 with the latest MySQL version. I then installed PHP 7.0 through to 8.1, the latest version of MySQL at the time (8.0.27), and the latest version of Wordpress (5.8.2). If you feel differently, I’d be happy to hear your thoughts in the comments! I went with this configuration as I think it represents what a standard Wordpress website might be using. Within the server, I went with Nginx over Apache as Nginx has long been the better option for high traffic, high load websites (or at least that is what I have been told). The instance configuration was Ubuntu 20.04 LTS, t2 small (1 vCPU, 2 GiB Memory), Low to Moderate Network performance. My curiosity wasn’t satisfied and so without any real benchmarking experience, I decided to give it a go. How would this version impact Wordpress, the most commonly used content management system on the web? I can’t help but imagine how a small time saved could compound into a magnitudinal number given that 42.9% of the top 10 million sites run Wordpress. Either they had tested 8.1 when it was in alpha stage, some 5+ months ago, or they just made generic statements such as “5-8% faster”. Would the 8.1 increase be as dramatic as each minor version of 7 was? I searched online but found very few results benchmarking PHP 8.1 in any meaningful kind of way. When I saw that PHP 8.1 had been released, I thought back to the jump in performance that 8.0 brought, and how far PHP has come from 5.6.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |