It's not infrequent we come across sites running on PHP 5.3 and cringe at the thought of running a potentially insecure and unsupported version of the language. But aside from that we should take care to look at the other tangible benefits of running a more modern version of PHP, namely performance and stability. With the latest version of concrete5 we're able to even run PHP7 and we're about to show you what's so exciting about that.

Below is a table of our findings. These tests were run against an account on our very own standard shared hosting plan, so nobody should think that "I can only get these kinds of results by having my own VPS or Dedicated Server and optimizing it to the max". The requests were made against the default home page of concrete5 version 7.

About the results

The sections with Concurrency Level, Average TTFB (Time to first byte), and Results File are the results of ApacheBenchmark. The TTFB is measured in milliseconds, and as you can see the more requests per second we throw at it the more it slows down. But perhaps what's most interesting here is that PHP7 with opcache at 10 concurrent requests averages a lower TTFB than PHP 5.3 does serving up only 1 requests at a time, and also outperforms all other versions of PHP at 10 concurrent requests by at least 53% and as much as 214%.

php7_concrete5_concurrency_ttfb.PNG

The Siege Results, were taken from a HTTP stress tester known as Siege. These are the results that came from throwing ~40 concurrent requests repeatedly at the server for 60 seconds, when one of the requests finished another one was sent. The Transactions is the number of successful requests processed. The Availability percentage indicates out of the 40 "users" making request, how often did the request succeed. Finally the Response Time in seconds is on average how long did it take to receive a response.

As we can see from these results, PHP7 with opcache enabled is the clear winner when it comes to performance, serving up requests 4x faster than PHP 5.3. Additionally the average response time under load was 1/4 of what it was and when not under load it was consistently half.  Another aspect which I feel is important when looking at the results is the Availability. Most websites don't just have a nice steady stream of requests all day long, there are lulls and spikes in traffic. These results show a pretty clear distinction on scalability with the newer versions of PHP, and the overall performance improvements that having opcache can have for you. By default PHP 5.4 and PHP 5.3 don't even offer opcache, you have to manually add the PECL module and many web hosts don't do this.

 php7_concrete5_average_response_time.PNG

 php7_concrete5_successful_requests.PNG

 

  PHP7 OpCache PHP7 PHP5.6 OpCache PHP5.6 PHP5.5 OpCache PHP5.5 PHP5.4 PHP5.3
Concurrency Level 1 1 1 1 1 1 1 1
Average TTFB 419 711 561 895 645 633 815 835
Results File PHP7_opcache_1.txt PHP7_1.txt PHP5.6_opcache_1.txt PHP5.6_1.txt PHP5.5_opcache_1.txt PHP5.5_1.txt PHP5.4_1.txt PHP5.3_1.txt
                 
Concurrency Level 2 2 2 2 2 2 2 2
Average TTFB 438 723 554 900 662 635 819 839
Results File PHP7_opcache_2.txt PHP7_2.txt PHP5.6_opcache_2.txt PHP5.6_2.txt PHP5.5_opcache_2.txt PHP5.5_2.txt PHP5.4_2.txt PHP5.3_2.txt
                 
Concurrency Level 5 5 5 5 5 5 5 5
Average TTFB 545 731 724 902 609 633 852 872
Results File PHP7_opcache_5.txt PHP7_5.txt PHP5.6_opcache_5.txt PHP5.6_5.txt PHP5.5_opcache_5.txt PHP5.5_5.txt PHP5.4_5.txt PHP5.3_5.txt
                 
Concurrency Level 10 10 10 10 10 10 10 10
Average TTFB 753 1265 1166 1616 1023 1159 1525 1545
Results File PHP7_opcache_10.txt PHP7_10.txt PHP5.6_opcache_10.txt PHP5.6_10.txt PHP5.5_opcache_10.txt PHP5.5_10.txt PHP5.4_10.txt PHP5.3_10.txt
                 
                 
SIEGE RESULTS PHP7_opcache_siege.txt PHP7_siege.txt PHP5.6_opcache_siege.txt PHP5.6_siege.txt PHP5.5_opcache_siege.txt PHP5.5_siege.txt PHP5.4_siege.txt PHP5.3_siege.txt
Transactions 1037 511 682 362 499 339 355 276
Availability 87.51 62.17 75.36 51.06 71.59% 50.67% 54.67% 43.40%
Response Time (seconds) 2.24 4.5 3.37 6.22 4.62 6.65 6.97 8.06

 

PHP7 Concrete5 Tests.zip

Concrete5 Page Speeds

Whether you're looking for the version of PHP to serve up the most requests or have the fastest load times, PHP7 will definitely serve you well. If you'd rather go with something a little bit less bleeding edge and more widely tested across concrete5 websites, PHP 5.6 with opcache is most likely your next best bet. If you can't get opcache, try checking if you are offered xcache, as it also has some decent performance advantages (even though I didn't benchmark in the above list I can tell you from experience that they produce similar results to opcache). If you're curious about HOW fast it really is, go ahead and check out http://c5sandbox.exchangecore.com/ and witness PHP7 for yourself on exchangecore shared hosting. You can even try out the editing interface by using the username demo and the password demouser. Very frequently you can have the entire page RENDERED in under a second.

Comments

Posted by Owen on
That demo site is running fast! And no compatibility issues?
Posted by BrandonBaix on
szcdqut

http://www.soomland.nl/012-nike-free-run-2-grijs-blauw.html
http://www.emiliaflorence.se/975-yeezy-350-moonrock.php
http://www.giochidipolizia.it/stan-smith-adidas-nuove-045.html
http://www.rockstarschool.es/902-adidas-los-angeles-grey.php
http://www.asadistribuzione.it/tubular-adidas-doom-640.html

[url=http://www.info-metall.it/252-adidas-zx-flux-italia-independent-camouflage.php]Adidas Zx Flux Italia Independent Camouflage[/url]
[url=http://www.majawallstrom.se/849-nike-air-max-90-vita-herr.html]Nike Air Max 90 Vita Herr[/url]
[url=http://www.dealonpro.fr/nike-thea-homme-rouge-619.php]Nike Thea Homme Rouge[/url]
[url=http://www.soomland.nl/309-nike-sb-stefan-janoski-kopen.html]Nike Sb Stefan Janoski Kopen[/url]
[url=http://www.cercaspartiti.it/air-max-white-and-black-625.asp]Air Max White And Black[/url]
Posted by ThomasTymn on
bbsedyl

http://www.planie.es/
http://www.terrazasdemadera.es/
http://www.responsabilidadmedica.es/
http://www.limpiezasyserviciosterres.es/
http://www.13congresoppandaluz.es/

[url=http://www.planie.es/]cialis sin receta[/url]
[url=http://www.mantenimientodejardines.com.es/]levitra original[/url]
[url=http://www.pharmaceutical-care.es/]kamagra sin receta[/url]
[url=http://www.hosting-prestashop.es]cialis prospecto[/url]
[url=http://www.limpiezasyserviciosterres.es/]kamagra gel[/url]
Posted by RichardMed on
lplhqrc

http://www.gameswallpapers.eu/411-ジェレミースコット-ディズニー.html
http://www.chris-musikbox.de/573-presto-nike-2000.php
http://www.giochidipolizia.it/stan-smith-adidas-vendita-398.html
http://www.sabrinaglas.de/nike-air-max-damen-schuhe-günstig-400.html
http://www.ottica-focuspoint.it/538-stefan-janoski-bordeaux.htm

[url=http://www.halcyonnights.co.uk/nike-air-jordan-retro-377.php]Nike Air Jordan Retro[/url]
[url=http://www.astro-lichtblicke.de/nike-presto-breathe-569.php]Nike Presto Breathe[/url]
[url=http://www.centrum-anahata.nl/885-superstar-goud-wit.html]Superstar Goud Wit[/url]
[url=http://www.hoteldeidogi.it/nike-air-huarache-nere-e-bianche-295.htm]Nike Air Huarache Nere E Bianche[/url]
[url=http://www.jeannot.nu/184-ナイキエアマックス-ピンク.html]ナイキエアマックス ピンク[/url]
Posted by CurtisBug on
wxejiqj

http://www.jeannot.nu/076-ナイキ-フリーラン-黒.html
http://www.gameswallpapers.eu/440-yeezy-350-v2.html
http://www.institut-lili.fr/505-chaussure-nike-shox-homme.htm
http://www.uitvaart-reportages.nl/nike-air-max-2016-dames-lichtblauw-150.php
http://www.wj-tag.de/superstar-film-295.php

[url=http://www.cigarrilloselectronicosmadrid.es/284-precio-nike-presto.htm]Precio Nike Presto[/url]
[url=http://www.institut-lili.fr/527-nike-femme-blanche.htm]Nike Femme Blanche[/url]
[url=http://www.northside1994.it/adidas-superstar-fantasia-395.php]Adidas Superstar Fantasia[/url]
[url=http://www.jeannot.nu/016-エアマックス90-エッセンシャル.html]エアマックス90 エッセンシャル[/url]
[url=http://www.herdephotos.fr/534-adidas-yeezy-750-boost-adidas.html]Adidas Yeezy 750 Boost Adidas[/url]
Posted by ThomasTymn on
cmaqitc

http://www.mantenimientodejardines.com.es/
http://www.pintorespontevedra.es/
http://www.hosting-prestashop.es
http://www.planie.es/
http://www.pharmaceutical-care.es/

[url=http://www.autoescuelaalcon.es/]cialis precio[/url]
[url=http://www.gimnasticadetorrelavega.es/]comprar viagra[/url]
[url=http://www.terrazasdemadera.es/]levitra sin receta[/url]
[url=http://www.casafuentesdeinvierno.es/]levitra sin receta[/url]
[url=http://www.13congresoppandaluz.es/]cialis 20[/url]
Posted by RichardMed on
itkfsxk

http://www.wj-tag.de/superstar-rosa-089.php
http://www.majawallstrom.se/807-nike-air-huarache-vintage.html
http://www.herdephotos.fr/775-adidas-tubular-og-1990.html
http://www.packaging-news-weekly.co.uk/398-adidas-la-trainer-full-black.aspx
http://www.soomland.nl/495-nike-air-force-1-low.html

[url=http://www.uitvaart-reportages.nl/nike-air-max-2016-dames-foot-locker-242.php]Nike Air Max 2016 Dames Foot Locker[/url]
[url=http://www.jannekeskapperij.nl/adidas-gazelle-lichtgrijs-653.php]Adidas Gazelle Lichtgrijs[/url]
[url=http://www.info-metall.it/987-scarpe-adidas-nuove-alte.php]Scarpe Adidas Nuove Alte[/url]
[url=http://www.ottica-focuspoint.it/579-nike-air-jordan-future.htm]Nike Air Jordan Future[/url]
[url=http://www.centrum-anahata.nl/446-adidas-neo-wit.html]Adidas Neo Wit[/url]
Posted by CurtisBug on
grynbqn

http://www.responsabilidadmedica.es/
http://www.planie.es/
http://www.pharmaceutical-care.es/
http://www.autoescuelaalcon.es/
http://www.pintorespontevedra.es/

[url=http://www.chinavibratoryhammer.es/]viagra o levitra[/url]
[url=http://www.gimnasticadetorrelavega.es/]comprar viagra[/url]
[url=http://www.pharmaceutical-care.es/]kamagra sin receta[/url]
[url=http://www.pintorespontevedra.es/]kamagra opiniones[/url]
[url=http://www.responsabilidadmedica.es/]viagra sin receta[/url]
Posted by CurtisBug on
xjkjbju

http://www.canadagoosekensingtonparka.se
http://www.uggtilbud.nu
http://www.ugghelsinki.nu
http://www.monclerjackets.nu
http://www.timberlandkengätale.nu

[url=http://www.canadagoosedanmark.nu]canada goose danmark[/url]
[url=http://www.monclercoat.nu]moncler coat[/url]
[url=http://www.uggtalvikengät.nu]ugg talvikengät[/url]
[url=http://www.timberlandireland.nu]timberland ireland[/url]
[url=http://www.canadagoosejakkeherre.nu]canada goose jakke herre[/url]
Leave a Reply



(Your email will not be publicly displayed.)



Search