Skip to content

Instantly share code, notes, and snippets.

@adampiotrowski
Last active March 6, 2016 16:31
Show Gist options
  • Select an option

  • Save adampiotrowski/972e537bed95487cbfde to your computer and use it in GitHub Desktop.

Select an option

Save adampiotrowski/972e537bed95487cbfde to your computer and use it in GitHub Desktop.
PHP7 vs PHP 5.6

ab -n 500 -c 10 http://demo.wellcommerce.org/

Tests made on UpCloud by using 2 separate backups. Only PHP version was updated and APCu installed.

PHP 7 with APCu (cache driver for Doctrine)

Server Software:        Apache/2.4.16
Server Hostname:        demo.wellcommerce.org
Server Port:            80

Document Path:          /
Document Length:        72858 bytes

Concurrency Level:      10
Time taken for tests:   15.658 seconds
Complete requests:      500
Failed requests:        0
Total transferred:      36584000 bytes
HTML transferred:       36429000 bytes
Requests per second:    31.93 [#/sec] (mean)
Time per request:       313.152 [ms] (mean)
Time per request:       31.315 [ms] (mean, across all concurrent requests)
Transfer rate:          2281.74 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.4      0       3
Processing:   101  312  53.0    313     492
Waiting:       97  301  51.4    301     485
Total:        101  312  53.0    313     492

Percentage of the requests served within a certain time (ms)
  50%    313
  66%    330
  75%    342
  80%    350
  90%    374
  95%    394
  98%    428
  99%    464
 100%    492 (longest request)

PHP 5.6 without APCu (Doctrine had filesystem cache driver enabled)

Server Software:        Apache/2.4.16
Server Hostname:        demo.wellcommerce.org
Server Port:            80

Document Path:          /
Document Length:        72567 bytes

Concurrency Level:      10
Time taken for tests:   67.861 seconds
Complete requests:      500
Failed requests:        17
   (Connect: 0, Receive: 0, Length: 17, Exceptions: 0)
Non-2xx responses:      17
Total transferred:      35203569 bytes
HTML transferred:       35049861 bytes
Requests per second:    7.37 [#/sec] (mean)
Time per request:       1357.213 [ms] (mean)
Time per request:       135.721 [ms] (mean, across all concurrent requests)
Transfer rate:          506.60 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:   125 1356 265.2   1359    2384
Waiting:      125 1356 265.2   1359    2384
Total:        125 1356 265.2   1359    2384

Percentage of the requests served within a certain time (ms)
  50%   1359
  66%   1436
  75%   1471
  80%   1501
  90%   1607
  95%   1749
  98%   2027
  99%   2102
 100%   2384 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment