Categories
PHP

PHP 7 Benchmark WordPress on VPS

With Serverpilot it’s extremely easy to change the PHP version of your application.

Today I am going to test the latest RC of PHP 7 in this same server using different PHP versions.

I am testing on a very modest server:

  • VPS server @ Vultr $5 / month
  • 778 MB – 1 Core – 15 GB SSD
  • Ubuntu 14.04 LEMP – Mod_pagespeed – APCu

Benchmark tool
I like a lot Siege easy simple and nice report.

apt-get install siege

To launch it

siege -c 5 -b --time=30S https://garridodiaz.com

Will create 5 concurrent jobs during 30 seconds.

PHP 5.6

Transactions:		         118 hits
Availability:		      100.00 %
Elapsed time:		       29.17 secs
Data transferred:	        1.84 MB
Response time:		        1.21 secs
Transaction rate:	        4.05 trans/sec
Throughput:		        0.06 MB/sec
Concurrency:		        4.88
Successful transactions:         118
Failed transactions:	           0
Longest transaction:	        2.05
Shortest transaction:	        0.71

PHP 7 RC 8

Transactions:		         277 hits
Availability:		      100.00 %
Elapsed time:		       29.49 secs
Data transferred:	        4.33 MB
Response time:		        0.53 secs
Transaction rate:	        9.39 trans/sec
Throughput:		        0.15 MB/sec
Concurrency:		        4.95
Successful transactions:         277
Failed transactions:	           0
Longest transaction:	        0.87
Shortest transaction:	        0.40

From this test we see that PHP 7 in this config is more than 2x faster :O good job guys!