Disclaimer

Test hardware

Ordinary Lenovo ThinkPad Yoga 260 laptop

Core i7 6500U @ 2.5 GHz, 2 physical core, 4 logical cores

8GB DDR4 @ 2133MHz

Disk 0 (C:) SSD 250GB, SAMSUNG MZNLN256HCHP-000L7, Average response time 6,1 ms

Test software

Windows 10 Pro, x64, Version 1709

MySQL running on Docker (image "mysql")

.NET Core 2.0 + Peachpie 0.9.0-CI00684 (Release) (build from here)

xampp-win32-7.2.1-0-VC15 - Apache 2.4.29 + PHP 7.2.1

ApacheBench, Version 2.3 (ab.exe)

opcache

Test procedure

Conclusion

As you can see, the trend is the same, as Peachpie can consistently serve more requests per second than PHP 7.2 can, but the difference gradually evens out if we increase the concurrency. The most notable difference can be observed with just one user requesting the respective page, particularly the blog post, where Peachpie was able to serve more than twice as many requests per second.First and foremost, we don't consider ourselves benchmarking experts by any stretch of the imagination. There may be flaws to our methodology and if you have any improvement ideas, we are more than happy to hear constructive criticism. However, please understand that we are only interested in a comparison on the Windows platform., not some distro of Linux with a very particular configuration of PHP etc. Also, we received some requests to test with php-fpm and Nginx against Apache, for example - if you are interested in how this would pan out, please go for it. Another important point is that the numbers are by no means final. We are thrilled that they turned out as good as they did, but we are nowhere near done with optimizing. We are certain that there is still a ton of space for tweaks and improvements, so we'll definitely repeat these benchmarks after a round of code optimizations.Edit: We didn't do any configuration of PHP, which was all done by XAMPP. Therefore, we also didn't manually enable, which may have a significant influence on the performance of PHP if not enabled by default.To see how to run WordPress with Peachpie, please refer to our tutorial on this topic or check out the video that shows all the steps in detail After a clean installation of WordPress, we set up concurrent requests using the well known ApacheBench tool. For this benchmark, we chose. After that, we switched to PHP 7.2 and Apache and made the same benchmarks with the aforementioned settings.The benchmarks above are the first benchmarks we produced for an entire real-world application. They serve as a good first indication of what's possible for PHP with the power of the Peachpie and .NET platforms. However, they are by no means final. We have yet to give performance enhancing optimizations a detailed look, as we are completely focusing on getting Peachpie to version 1.0. There are hundreds of possible tweaks that can be made that are likely to increase the performance even more.What can we say, though - kudos to PHP for the amazing performance enhancements they have made. Most benchmarks we saw indicate that WordPress on PHP 7.0 is about twice as fast as it was on PHP 5.4, so the improvements to the platform over the last couple of years are truly astonishing.Also, we encourage everyone to think of Peachpie not just as a tool that helps speed up PHP applications, but also as a platform that enables you to develop with .NET and PHP side by side within one project. We will continue producing benchmarks for various applications from time to time to monitor the progress of our development. There will be other major real-world projects to add to the portfolio of apps you can already run on Peachpie very soon, so stay tuned for updates!