每年,我们都会在各种平台上发布深入的性能基准测试,以理解不同版本的PHP如何相互竞争。这次我们再次全力以赴,对 22种不同平台/配置的6种不同PHP版本进行了 基准测试;包括WordPress,Drupal,Joomla!
,Laravel,Symfony等。我们还测试了盛行的电子商务办理方案,例如WooCommerce,Easy Digital Downloads,Magento,Grav CMS和October CMS。
掩护者:郭泓源,Mycinsta大街上的 il ya une une nouvelle façon
免费试用

我们一贯鼓励WordPress用户利用最新 支持的PHP版本。它们不仅更安全,而且还供应了其他性能改进。我们也不是只在评论辩论WordPress,这在所有平台上都是如此。本日我们将向您展示PHP 7.4如何帮助我们战胜统统寻衅!
我们在6个不同的PHP版本上测试了22个平台/配置的性能,而#PHP 7.4在17/17(5 N / A)上得到了金牌。点击鸣叫
社区和Kinsta中PHP的状况PHP是一种开放源代码的做事器端脚本和编程措辞,紧张用于Web开拓。大部分核心WordPress软件都是用PHP编写的,这使PHP成为WordPress社区非常主要的措辞。有很多精良的PHP教程,您想学习这种编程措辞。
有人可能会争辩说 PHP已经去世了。但是,纵然开拓职员喜好声明这一点,PHP仍旧比以往更生动,更快,更好。根据W3Techs,利用做事器端编程措辞的所有网站中,有78.9%以上利用PHP 。那是很多依赖PHP的网站。
但是,社区中的一个大问题是,许多人仍在利用旧的不受支持的PHP版本。根据 WordPress统计,只有38.3%的人在受支持的PHP版本(7.2或更高版本)上运行。这引入了性能和安全性问题。
为什么会这样呢?以下是我们常日会看到的一些常见缘故原由:
缺少对社区进行有关PHP是什么及其在WordPress如何发挥浸染方面的主要浸染的教诲。并非每个人都精通技能,这还可以。在较新版本的PHP上运行的插件和主题的兼容性问题。WordPress托管供应商不愿推出新版本,由于担心会涌现问题。为了考试测验帮助社区向前发展,Kinsta采取了与PHP 相同的寿命终止(EOL)韶光表。这有助于确保您的WordPress网站尽可能快和 安全。
Kinsta客户如何与普通的WordPress社区对抗?我们自己很好奇,以是我们看了一些数字。
Kinsta托管的网站的PHP版本
这是择要:
Kinsta的WordPress网站中有25.8%运行的是PHP 7.2。Kinsta上有68.6%的WordPress网站正在运行PHP 7.3。Kinsta的4.7%WordPress网站都在运行PHP 7.4。我们正在努力实现终极的<1%。我们为创造这些数字感到骄傲和愉快。这意味着Kinsta客户中PHP的采取率非常高!
比一样平常的WordPress人口高很多。
在Kinsta托管的所有WordPress网站中,高达73.3%运行的是PHP 7.3或更高版本!
点击鸣叫
纵然不再正式支持PHP 5.6、7.0和7.1,仍旧有很多WordPress网站在运行。因此,我们决定测试所有六个不同的PHP版本,以便您可以看到较新的版本在性能方面能给您带来多少好处。
对付每个测试,我们利用每个平台的最新版本,并以15个并发用户为基准对主页进行一分钟的基准测试。以下是我们测试环境的详细信息。
利用的打算机: Intel®Xeon®CPU(30 CPU,120 GB RAM,1TB SSD)。这是由Google Cloud Platform供应支持并在隔离的容器中运行的“打算优化”(C2)打算机。所有Kinsta托管操持都供应C2机器。操作系统: Ubuntu 18.04.3 LTS(GNU / Linux 5.0.0-1026-gcp x86_64)堆栈: Nginx 1.17.6,MariaDB 10.4.10PHP版本: 5.6、7.0、7.1、7.2、7.3、7.4。把稳: 在某些CMS / Frameworks中,我们还安装了其他PHP软件包,以知足其新哀求或与Composer依赖关系。页面缓存: 在所有配置和平台上均禁用。OPcache:对付WordPress,Joomla和Drupal,我们利用了官方的Docker映像。别的的我们利用相同的映像设置,并利用以下推举的php.ini设置启用了OPcache ,但该 opcache.max_accelerated_files 值从4,000增加到50,000。opcache.memory_consumption=128opcache.interned_strings_buffer=8opcache.max_accelerated_files=50000opcache.revalidate_freq=60opcache.fast_shutdown=1opcache.enable_cli=1
OPcache通过将预编译的脚本字节码存储在共享内存中来提高PHP性能,从而肃清了PHP在每个要求上加载和解析脚本的需求。
这些测试是由Kinsta的WordPress贡献者和Web开拓职员Thoriq Firdaus实行的。
经由测试的平台和配置我们的测试包括以下22种平台/配置。在某些情形下,由于缺少对特定PHP版本的支持,我们不自得外试多个版本。单击下面的一个可直接跳至其测试解释和结果。数据以每秒要求数衡量。要求越多越好。
WordPress 5.3WordPress 5.3 + WooCommerce 3.8.1WordPress 5.3 +大略单纯数字下载2.9.20Drupal 8.8.0Joomla!3.9.13Magento 2(CE)2.2.10 + 2.3.3Grav CMS 1.6.19十月CMS 1.0.458Laravel 5.8.35 + 6.7.0Symfony 4.4.2 + 5.0.1CodeIgniter 3.1.11 + 4.0-rc.3CakePHP 3.8.7 + 4.0.0PyroCMS 3.7Pagekit 1.0.17螺栓CMS 3.7.0Craft CMS 3.4.0-beta.4ExpressionEngine 5.3.0
由于每个平台上的演示内容可能会发生很大的变革,因此我们决定测试全新的准系统的原始性能。
WordPress 5.3当然,我们测试的第一个平台是我们最喜好的平台之一:WordPress(我们每天都会生活和呼吸CMS,这可能会有点偏bias)。WordPress的核心是开源软件,您可以利用它来创建俊秀的网站,博客或运用程序。实际上,WordPress 在互联网上占所有网站的35.2%。是的-您访问的网站中有三分之一以上可能由WordPress供应支持。
我们从WordPress 5.3开始,它是撰写本文时的最新版本。我们利用了新的Twenty Twenty主题,并与15个并发用户对网站进行了1分钟的基准测试。
经由测试的网址: /hello-world/把稳:该页面包含1条注释,一个带有几个菜单的导航栏。侧边栏包含一些默认的WordPress小部件。Docker镜像源自https://hub.docker.com/_/wordpress/。WordPress 5.3 PHP基准测试
嵌入您的网站:
基准结果WordPress 5.3 PHP 5.6基准测试:97.71 req / secWordPress 5.3 PHP 7.0基准测试结果:256.81 req / secWordPress 5.3 PHP 7.1基准测试结果:256.99 req / secWordPress 5.3 PHP 7.2基准测试结果:273.07 req / sec WordPress 5.3 PHP 7.3基准测试结果:305.59 req / secWordPress 5.3 PHP 7.4基准测试结果:313.42 req / secPHP 7.4是赢家,被证明比PHP 7.3快一点。而且,如果将PHP 7.4与PHP 5.6进行比较,则它每秒可以处理3倍以上的要求(事务)!
Update your PHP with one-click for greater site performance, speed, and security. Try Kinsta for Free.
WordPress 5.3 + WooCommerce 3.5.2WooCommerce is a fully customizable, open-source ecommerce platform built for WordPress. It’s also by far, one of the most popular ecommerce solutions in the WordPress community, and currently powers over 14% of all ecommerce sites on the internet.
For this next test, we took WordPress along with WooCommerce installed. We utilized the free Storefront eCommerce theme (2.5.3).
Tested URL: /product/woo-ninja/Note: The page contains 3 related products, 1 product review/comment, 1 product in “You May Also Like” section, and product in next and previous pagination.Docker Image is derived from https://hub.docker.com/_/wordpress/.WordPress 5.3 + WooCommerce PHP Benchmarks
Embed on your site:
Benchmark ResultsWordPress 5.3 + WooCommerce 3.8.1 PHP 5.6 benchmark results: 49.29 req/secWordPress 5.3 + WooCommerce 3.8.1 PHP 7.0 benchmark results: 117.35 req/secWordPress 5.3 + WooCommerce 3.8.1 PHP 7.1 benchmark results: 117.52 req/secWordPress 5.3 + WooCommerce 3.8.1 PHP 7.2 benchmark results: 125.85 req/secWordPress 5.3 + WooCommerce 3.8.1 PHP 7.3 benchmark results: 141.68 req/secWordPress 5.3 + WooCommerce 3.8.1 PHP 7.4 benchmark results: 146.07 req/secWhen running WooCommerce, PHP 7.4 beat out PHP 7.3 by a small margin.
WordPress 5.3 + Easy Digital Downloads 2.9.20由Pippin Williamson创建的Easy Digital Downloads(EDD)是一个免费的WordPress电子商务插件,紧张致力于帮助创作者和开拓者发卖数字产品。
在理解了WooCommerce的表现之后,我们随后将WordPress和Easy Digital Downloads一起安装了。我们利用了免费的主题主题(1.0.7)。
经由测试的网址: /downloads/side-hustle/把稳:该页面是EDD的单一产品,包含图像,几段段落行,购买按钮和种别链接。Docker镜像源自https://hub.docker.com/_/wordpress/。WordPress 5.3 + Easy Digital下载PHP基准
嵌入您的网站:
基准结果WordPress 5.3 + EDD 2.9.20 PHP 5.6基准测试结果:136.73 req / secWordPress 5.3 + EDD 2.9.20 PHP 7.0基准测试结果:323.84 req / secWordPress 5.3 + EDD 2.9.20 PHP 7.1 benchmark results: 326.32 req/secWordPress 5.3 + EDD 2.9.20 PHP 7.2 benchmark results: 346.51 req/secWordPress 5.3 + EDD 2.9.20 PHP 7.3 benchmark results: 390.85 req/secWordPress 5.3 + EDD 2.9.20 PHP 7.4 benchmark results: 400.78 req/secPHP 7.4 was also the fastest with WordPress and Easy Digital Downloads.
When it comes to WordPress, WooCommerce, and Easy Digital Downloads, PHP 7.4 has proven to be marginally faster across the board!
Info
All benchmark data is measured in requests per second. The more requests the better.
Drupal 8.8.0Drupal is an open-source CMS popular for its modular system and strong developer community. It was originally launched in 2000 and according to W3Techs, powers 1.7% of all websites with a 3.0% share of the content management system market.
For the Drupal benchmark, we utilized the free Umami default theme (8.8.0).
Tested URL: /en/articles/dairy-free-and-delicious-milk-chocolateNote: Drupal is installed with dummy data “Umami Food Magazine (Experimental)” that comes built-in.Drupal 8.8 no longer supports PHP 5.6 and isn’t compatible with PHP 7.4 yet (https://www.drupal.org/project/drupal/issues/3086374).Docker Image is derived from https://hub.docker.com/_/drupal/.Drupal PHP benchmarks
Embed on your site:
Benchmark ResultsDrupal 8.8.0 PHP 5.6 benchmark results: not supportedDrupal 8.8.0 PHP 7.0 benchmark results: 18.47 req/secDrupal 8.8.0 PHP 7.1 benchmark results: 18.81 req/secDrupal 8.8.0 PHP 7.2 benchmark results: 19.38 req/secDrupal 8.8.0 PHP 7.3 benchmark results: 21.56 req/sec Drupal 8.8.0 PHP 7.4 benchmark results: not supportedWhen running Drupal, PHP 7.3 showed great improvement in performance. It was a much bigger leap than the previous PHP versions.
We grew our traffic 1,187% with WordPress.We’ll show you how.
Join 20,000+ others who get our weekly newsletter with insider WordPress tips!
SUBSCRIBE NOW
Subscribe to the Kinsta newsletter
Subscribe
I agree to the Terms and Conditions and Privacy Policy
Joomla! 3.9.13Joomla! is a free and open-source CMS for publishing web content, originally released on August 17, 2005. It’s built on a model–view–controller web application framework and according to W3Techs is used by 2.6% of all websites on the internet.
For the Joomla! benchmark, we utilized the free Protostar (1.0) template which is included in the Joomla! 3.x distribution package.
Tested URL: / (homepage)Note: Joomla! is installed with “default English (GB) sample data.” It provides basic dummy content on the homepage. The homepage contains a few paragraphs of content, a search input form, and a number of basic widgets on the sidebar.Docker Image is derived from https://hub.docker.com/_/joomla/.Joomla! PHP benchmarks
Embed on your site:
Benchmark ResultsJoomla!3.9.13 PHP 5.6基准测试结果:48.40 req / secJoomla!
3.9.13 PHP 7.0基准测试结果:67.80 req / secJoomla!
3.9.13 PHP 7.1基准测试结果:67.37 req / secJoomla!
3.9.13 PHP 7.2基准测试结果:68.53 req / secJoomla!
3.9.13 PHP 7.3基准测试结果:71.63 req / secJoomla!
3.9.13 PHP 7.4基准测试结果:76.31 req / sec
在Joomla上!
我们可以看到整体表现有些差。从PHP 5.6到7.0+的性能有了巨大的提高。并快速提高到PHP 7.4,无疑是Joomla的赢家!
Magento是利用PHP编写的盛行的开源电子商务平台,于2008年3月31日发布。截至2018年,Magento现在是Adobe公司。据W3Techs称,它为互联网上所有网站的0.8%供应支持。
对付Magento 2基准,我们利用了免费的Luma主题。由于2.2.10仅支持PHP 7.2,以是我们利用了两个版本。对付其他测试,我们利用2.3.3。
经由测试的网址: /lifelong-fitness-iv.html把稳:禁用了天生静态HTML页面的页面缓存。经测试的URL是单个产品。它包含一个图像产品,一个导航栏,面包屑导航,并且没有评论。Magento 2不再支持PHP 5.6并且与PHP 7.4不兼容。http://pubfiles.nexcess.net/magento/ce-packages/Magento 2 PHP基准测试
嵌入您的网站:
基准结果Magento 2(CE)2.2.10 PHP 5.7基准测试结果:不支持Magento 2(CE)2.2.10 PHP 7.0基准测试结果:28.33 req / secMagento 2(CE)2.2.10 PHP 7.1基准测试结果:28.51 req / secMagento 2 (CE) 2.2.10 PHP 7.2 benchmark results: 29.58 req/secMagento 2 (CE) 2.2.10 PHP 7.3 benchmark results: not supportedMagento 2 (CE) 2.2.10 PHP 7.4 benchmark results: not supportedMagento 2 (CE) 2.3.0 PHP 5.6 benchmark results: not supportedMagento 2 (CE) 2.3.0 PHP 7.0 benchmark results: not supportedMagento 2 (CE) 2.3.0 PHP 7.1 benchmark results: 25.33 req/secMagento 2 (CE) 2.3.0 PHP 7.2 benchmark results: 27.01 req/secMagento 2 (CE) 2.3.0 PHP 7.3 benchmark results: 29.97 req/sec Magento 2 (CE) 2.3.0 PHP 7.4 benchmark results: not supportedMagento 2 PHP benchmarks don’t vary too much. But great news is that the latest version of Magento along with the latest supported PHP version (7.3) is the fastest.
Grav CMS 1.6.19Grav是易于利用但功能强大的开源CMS,不须要数据库。有时也称为平面文件CMS。
对付Grav CMS基准,我们利用了免费的Clean Blog框架包。
经由测试的网址: /home/the-urban-jungleGrav CMS不再支持PHP 5.6和7.0。把稳:内容是一个大略的单栏博客文章,没有侧边栏。Core GravCMS缓存已禁用。Grav CMS PHP基准
嵌入您的网站:
基准结果Grav CMS 1.6.19 PHP 5.6基准测试结果:不支持Grav CMS 1.6.19 PHP 7.0基准测试结果:不支持Grav CMS 1.6.19 PHP 7.1基准测试结果:62.25 req / secGrav CMS 1.6.19 PHP 7.2基准测试结果:64.69 req / secGrav CMS 1.6.19 PHP 7.3基准测试结果:69.07 req / secGrav CMS 1.6.19 PHP 7.4 benchmark results: 75.04 req/secWe can see with Grav CMS that the latest version of PHP 7.4 is the winner.
It’s also nice to see these smaller content management systems dropping support for older versions of PHP. Although that is one advantage of not being quite as big either. Unfortunately, when it comes to WordPress and other platforms with a large portion of the market share, things progress more slowly due to compatibility issues.
October CMS 1.0.458October CMS is a free, open-source, self-hosted and modular CMS platform based on the Laravel PHP Framework. It was originally released on May 15, 2014.
For the October CMS benchmark, we utilized the free Clean Blog theme.
Tested URL: /blog/post/first-blog-postOctober CMS no longer supports PHP 5.6 and isn’t compatible with PHP 7.4 yet (https://github.com/octobercms/october/issues/4381).October CMS PHP benchmarks
Embed on your site:
Benchmark ResultsOctober CMS 1.0.458 PHP 5.6 benchmark results: not supportedOctober CMS 1.0.458 PHP 7.0 benchmark results: 44.83 req/secOctober CMS 1.0.458 PHP 7.1 benchmark results: 45.21 req/secOctober CMS 1.0.458 PHP 7.2 benchmark results: 46.71 req/secOctober CMS 1.0.458 PHP 7.3 benchmark results: 49.26 req/sec October CMS 1.0.458 PHP 7.4 benchmark results: not supportedPHP 7.3 is the winner, if only by a slight margin. PHP 7.4 once it’s supported will most likely show improvements as well.
Laravel 5.8.35 + 6.7.0Laravel是一个非常盛行的开源PHP框架,用于开拓Web运用程序。它由泰勒·奥特威尔(Taylor Otwell)创建,并于2011年6月发布。
对付Laravel基准测试,我们利用了普通的HTML主题。
经由测试的网址:(/首页)该帖子包含标题,作者姓名和紧张内容。该数据库包含1个表“ posts”。该表包含6列“ post_title”,“ post_content”,“ post_author”,“ created_at”和“ updated_at”。经测试的URL连接到数据库,并在表上显示所有帖子。此外,Laravel运用程序包含1条路线和1个掌握器来显示这些内容。Laravel 5.8.35不再支持PHP 5.6或PHP 7.0。Laravel 6.7.0不再支持PHP 5.6、7.0或7.1。Laravel PHP基准测试
嵌入您的网站:
基准结果Laravel 5.8.35 PHP 5.6基准测试结果:不支持Laravel 5.8.35 PHP 7.0基准测试结果:不支持Laravel 5.8.35 PHP 7.1基准测试结果:380.52 req / secLaravel 5.8.35 PHP 7.2基准测试结果:382.80 req / secLaravel 5.8.35 PHP 7.3基准测试结果:400.22 req / secLaravel 5.8.35 PHP 7.4基准测试结果:402.39 req / secLaravel 6.7.0 PHP 5.6基准测试结果:不支持Laravel 6.7.0 PHP 7.0基准测试结果:不支持Laravel 6.7.0 PHP 7.1基准测试结果:不支持Laravel 6.7.0 PHP 7.2基准测试结果:383.21 req / sec Laravel 6.7.0 PHP 7.3基准测试结果:392.74 req / secLaravel 6.7.0 PHP 7.4基准测试结果:394.96 req / sec在这两个版本上,PHP 7.4都是明显的赢家。但是,有趣的是,带有PHP 7.4的Laravel 5.8.35彷佛比Laravel 6.7.0快。
Symfony 4.4.2 + 5.0.1Symfony是一组可重用的PHP组件和一个PHP框架,用于构建Web运用程序,API,微做事和Web做事。它于2005年10月22日发布。
对付Symfony基准,我们将Symfony演示与MySQL(默认为SQLite)一起利用。
经由测试的网址: /en/blog/posts/hello-world帖子包含标题,日期,作者姓名,2个标签和5条评论。Symfony 4.4.2不再支持PHP 5.6或PHP 7.0。Symfony 5.0.1不再支持PHP 5.6、7.0或7.1。Symfony PHP基准
嵌入您的网站:
基准结果Symfony 4.4.2 PHP 5.6基准测试结果:不支持Symfony 4.4.2 PHP 7.0基准测试结果:不支持Symfony 4.4.2 PHP 7.1基准测试结果:295.84 req / secSymfony 4.4.2 PHP 7.2基准测试结果:309.26 req / secSymfony 4.4.2 PHP 7.3基准测试结果:327.61 req / secSymfony 4.4.2 PHP 7.4基准测试结果:338.18 req / secSymfony 5.0.1 PHP 5.6基准测试结果:不支持Symfony 5.0.1 PHP 7.0基准测试结果:不支持Symfony 5.0.1 PHP 7.1基准测试结果:不支持Symfony 5.0.1 PHP 7.2基准测试结果:229.09 req / secSymfony 5.0.1 PHP 7.3基准测试结果:239.96 req / secSymfony 5.0.1 PHP 7.4基准测试结果:252.22 req / sec我们可以看到Symfony版本4.4.2和PHP 7.4是最快的。
一键式更新PHP,以提高站点性能,速率和安全性。免费试用Kinsta。
CodeIgniter 3.1.11 + 4.0-rc.3CodeIgniter是一个功能强大的PHP框架,占地面积很小,是为须要大略优雅的工具箱来创建功能完好的Web运用程序的开拓职员而构建的。
经由测试的网址:(/首页)把稳:帖子包含标题,作者姓名和紧张内容。该数据库包含1个表“ posts”。该表包含6列“ post_title”,“ post_content”,“ post_author”,“ created_at”和“ updated_at”。经测试的URL连接到数据库,并在表上显示所有帖子。此外,CodeIgniter运用程序包含1条路由和1个掌握器来显示这些内容。CodeIgniter 4.0-rc.3不支持PHP 5.6、7.0或7.1。
CodeIgniter PHP基准测试
嵌入您的网站:
基准结果CodeIgniter 3.1.11 PHP 5.6基准测试结果:292.81 req / secCodeIgniter 3.1.11 PHP 7.0基准测试结果:358.40 req / secCodeIgniter 3.1.11 PHP 7.1基准测试结果:369.93 req / secCodeIgniter 3.1.11 PHP 7.2基准测试结果:383.24 req / sec CodeIgniter 3.1.11 PHP 7.3基准测试结果:392.28 req / secCodeIgniter 3.1.11 PHP 7.4 benchmark results: 394.96 req/sec CodeIgniter 4.0-rc.3 PHP 5.6 benchmark results: not supportedCodeIgniter 4.0-rc.3 PHP 7.0 benchmark results: not supportedCodeIgniter 4.0-rc.3 PHP 7.1 benchmark results: not supportedCodeIgniter 4.0-rc.3 PHP 7.2 benchmark results: 319.68 req/sec CodeIgniter 4.0-rc.3 PHP 7.3 benchmark results: 322.90 req/sec CodeIgniter 4.0-rc.3 PHP 7.4 benchmark results: 333.08 req/secAs with Laravel and Symfony, PHP 7.4 was the fastest when running CodeIgniter. What was interesting is that CodeIgniter 3.1.11 was significantly faster than 4.0-rc.3. However, bear in mind that it is a release candidate.
CakePHP 3.8.7 + 4.0.0CakePHP is an open-source web, rapid development framework that makes building web applications simpler, faster and require less code. It was released in April 2005.
经由测试的网址:(/首页)把稳:帖子包含标题,作者姓名和紧张内容。该数据库包含1个表“ posts”。该表包含6列“ post_title”,“ post_content”,“ post_author”,“ created_at”和“ updated_at”。经测试的URL连接到数据库,并在表上显示所有帖子。此外,CodeIgniter运用程序包含1条路由和1个掌握器来显示这些内容。CakePHP 4.0.0不支持PHP 5.6、7.0或7.1。
CakePHP基准
嵌入您的网站:
基准结果CakePHP 3.8.7 PHP 5.6基准测试结果:134.09 req / secCakePHP 3.8.7 PHP 7.0基准测试结果:254.58 req / secCakePHP 3.8.7 PHP 7.1基准测试结果:267.29 req / secCakePHP 3.8.7 PHP 7.2基准测试结果:270.94 req / secCakePHP 3.8.7 PHP 7.3基准测试结果:290.25 req / secCakePHP 3.8.7 PHP 7.4基准测试结果:294.06 req / secCakePHP 4.0.0 PHP 5.6基准测试结果:不支持CakePHP 4.0.0 PHP 7.0基准测试结果:不支持CakePHP 4.0.0 PHP 7.1基准测试结果:不支持CakePHP 4.0.0 PHP 7.2基准测试结果:245.49 req / secCakePHP 4.0.0 PHP 7.3基准测试结果:260.84 req / secCakePHP 4.0.0 PHP 7.4基准测试结果:259.58 req / sec对付CakePHP,运行PHP 7.4的版本3.8.7成为赢家。
PyroCMS 3.7PyroCMS是一个开放源代码,从实质上讲是Laravel的扩展,它使您可以更快地在框架上构建网站和运用程序。
对付PyroCMS基准测试,我们利用了免费的入门主题。
经由测试的网址: /posts/welcome-to-pyrocmsPyroCMS 3.7不支持PHP 5.6或7.0。Note: We encountered an error when running on PHP 7.4. Most likely because it isn’t supported yet. Therefore, we weren’t able to include it in the benchmarks.PyroCMS PHP benchmarks
Embed on your site:
Benchmark ResultsPyroCMS 3.5.3 PHP 5.6 benchmark results: not supportedPyroCMS 3.5.3 PHP 7.0 benchmark results: not supportedPyroCMS 3.5.3 PHP 7.1 benchmark results: 91.45 req/secPyroCMS 3.5.3 PHP 7.2 benchmark results: 94.77 req/secPyroCMS 3.5.3 PHP 7.3 benchmark results: 103.35 req/sec PyroCMS 3.5.3 PHP 7.4 benchmark results: not supportedDue to the fact that PHP 7.4 isn’t working yet with PyroCMS, PHP 7.3 won the tests here by a small margin.
Pagekit 1.0.17Pagekit is an open-source modular and lightweight CMS founded by YOOtheme. It gives you the tools to create beautiful websites. It was released in the Spring of 2016.
For the Pagekit benchmark, we used the free One theme (default Pagekit theme).
Tested URL: /blog/1Pagekit PHP benchmarks
Embed on your site:
Benchmark ResultsPagekit 1.0.17 PHP 5.6 benchmark results: 249.48 req/secPagekit 1.0.17 PHP 7.0 benchmark results: 401.77 req/secPagekit 1.0.17 PHP 7.1 benchmark results: 406.99 req/secPagekit 1.0.17 PHP 7.2 benchmark results: 419.56 req/secPagekit 1.0.17 PHP 7.3 benchmark results: 431.21 req/secPagekit 1.0.17 PHP 7.4 benchmark results: 438.39 req/secPHP 7.4 took the gold when testing it with Pagekit.
Bolt CMS 3.7.0Bolt CMS,即Bolt,是一种开源内容管理工具,力求尽可能大略明了。它基于Silex和Symfony组件,利用Twig和SQLite,MySQL或PostgreSQL。
对付Bolt CMS基准测试,我们利用了免费的Bolt Base 2018主题。
经由测试的网址: /entry/hello-world把稳:利用内置虚拟内容天生器天生的内容。Bolt CMS PHP基准测试
嵌入您的网站:
基准结果Bolt CMS 3.7.0 PHP 5.6基准测试结果:50.91 req / secBolt CMS 3.7.0 PHP 7.0基准测试结果:132.49 req / secBolt CMS 3.7.0 PHP 7.1基准测试结果:134.55 req / secBolt CMS 3.7.0 PHP 7.2基准测试结果:139.02 req / secBolt CMS 3.7.0 PHP 7.3基准测试结果:147.03 req / secBolt CMS 3.7.0 PHP 7.4基准测试结果:162.77 req / sec当利用Bolt CMS进行测试时,PHP 7.4赢得了金牌。看到自PHP 5.6以来的性能改进也令人惊奇。
Craft CMS 3.4.0-beta.4Craft CMS是面向开拓职员,设计职员和Web专业人士的重点内容管理系统,领悟了灵巧性,强大功能和客户易用性。
经由测试的网址: /news/barrel-aged-digital-nativesCraft CMS不支持PHP 5.6。利用https://github.com/craftcms/demo测试了演示运用
Craft CMS PHP基准
嵌入您的网站:
基准结果Craft CMS 3.4.0-beta.4 PHP 5.6基准测试结果:不支持Craft CMS 3.4.0-beta.4 PHP 7.0基准测试结果:140.81 req / secCraft CMS 3.4.0-beta.4 PHP 7.1基准测试结果:145.75 req / secCraft CMS 3.4.0-beta.4 PHP 7.2基准测试结果:151.15 req / secCraft CMS 3.4.0-beta.4 PHP 7.3基准测试结果:163.95 req / secCraft CMS 3.4.0-beta.4 PHP 7.4基准测试结果:169.11 req / secPHP 7.4在利用Craft CMS进行测试时得到了金牌。
ExpressionEngine 5.3.0ExpressionEngine是一个灵巧的,功能丰富的内容管理平台,它使天下各地成千上万的个人和组织可以轻松地管理其网站。
对付ExpressionEngine基准,我们利用了默认主题。
经由测试的网址: /blog/entry/super-old-entryExpressionEngine不支持PHP 5.6。把稳:页面包含带有3个小部件(搜索,种别列表和RSS feed链接)的侧栏。页面还包含面包屑导航。ExpressionEngine PHP基准
嵌入您的网站:
基准结果ExpressionEngine 5.3.0 PHP 5.6基准测试结果:不支持ExpressionEngine 5.3.0 PHP 7.0基准测试结果:101.32 req / secExpressionEngine 5.3.0 PHP 7.1基准测试结果:103.54 req / secExpressionEngine 5.3.0 PHP 7.2基准测试结果:107.79 req / secExpressionEngine 5.3.0 PHP 7.3基准测试结果:108.35 req / secExpressionEngine 5.3.0 PHP 7.4基准测试结果:110.56 req / sec用ExpressionEngine进行测试时,PHP 7.4赢得了金牌。
在Kinsta更新到PHP 7.4如果以上结果不能使您信服,我们不愿定会若何!
只是一个善意的提醒。如果你是一个Kinsta客户端,PHP 7.2,7.3和7.4都可以供你利用。如果您希望看到性能改进,则可以在MyKinsta仪表板中单击一下即可轻松变动为较新的版本。
变动为PHP 7.4
如果您担心它与第三方插件不兼容(可能会发生),这正是我们拥有暂存站点的缘故原由。您可以进行测试,而不必担心毁坏生产现场。
从基准结果中总结从上面的测试中您可以清楚地看到,就所有平台的性能而言,PHP 7.4处于领先地位。
我们在6个不同的PHP版本上测试了22个平台/配置的性能,而#PHP 7.4在17/17(5 N / A)上大获全胜!
点击鸣叫
我们乃至没有测试过preloading,这是PHP 7.4中引入的新功能。这意味着7.4乃至可能会更快。如果您的托管做事供应商不供应PHP的较新版本,那么大概您该考虑迁移了。对付WordPress用户,除了升级到最新的PHP版本外,我们还网络了许多其他技能,可以帮助您进一步提高网站性能。请参阅我们的终极指南中有关如何加快WordPress网站速率的详细信息。
我们对PHP 7.4感到非常愉快,希望您也是如此!
我们很想听听您对基准测试的想法,乃至是您升级后的履历。将它们放在评论中。
如果您喜好这篇文章,那么您会喜好Kinsta的WordPress托管平台。加速您的网站,并从我们履历丰富的WordPress团队得到24/7支持。我们基于Google Cloud的根本架构专注于自动扩展,性能和安全性。让我们向您展示Kinsta的分歧凡响!
查看我们的操持
泓源视野
版权所有
禁止转载