Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID

Some Quick Benchmarks

edited July 2012 in Framework

I was running on a http://digitalocean.com 256MB Memory, 1 Cores, Ubuntu 12.04. Everything identical except apache/nginx for the most part. I was fairly surprised.


Server Software:        Apache/2.2.22
Server Hostname:        localhost
Server Port:            80

Document Path:          /index
Document Length:        6292 bytes

Concurrency Level:      5
Time taken for tests:   16.793 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      6753000 bytes
HTML transferred:       6292000 bytes
Requests per second:    59.55 [#/sec] (mean)
Time per request:       83.967 [ms] (mean)
Time per request:       16.793 [ms] (mean, across all concurrent requests)
Transfer rate:          392.70 [Kbytes/sec] received

Connection Times (ms)
          min  mean[+/-sd] median   max
Connect:        0    0   0.2      0       4
Processing:    37   84  12.2     84     292
Waiting:       36   76  11.5     76     285
Total:         37   84  12.2     84     292

Percentage of the requests served within a certain time (ms)
  50%     84
  66%     85
  75%     88
  80%     89
  90%     95
  95%     99
  98%    101
  99%    103
 100%    292 (longest request)

Server Software:        nginx/1.1.19
Server Hostname:       localhost
Server Port:            80

Document Path:          /
Document Length:        6278 bytes

Concurrency Level:      5
Time taken for tests:   6.185 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      6632000 bytes
HTML transferred:       6278000 bytes
Requests per second:    161.67 [#/sec] (mean)
Time per request:       30.926 [ms] (mean)
Time per request:       6.185 [ms] (mean, across all concurrent requests)
Transfer rate:          1047.10 [Kbytes/sec] received

Connection Times (ms)
          min  mean[+/-sd] median   max
Connect:        0    0   0.3      0       5
Processing:    14   31   7.4     31     217
Waiting:       14   29   7.1     28     210
Total:         14   31   7.4     31     217

Percentage of the requests served within a certain time (ms)
  50%     31
  66%     32
  75%     34
  80%     34
  90%     37
  95%     38
  98%     40
  99%     42
 100%    217 (longest request)

Comments

  • Which method of running PHP under Apache are you using?

  • FastCGI. Although now that I think about it... I did have APC enabled on the Nginx install and not apache. Either way. Apache is gone.

  • I haven't looked into nginx. Is it any good?

  • In the little bit of playing with it I have done. It outperforms Apache on every front. Takes some extra setup and playing with to get it right. But, I am sold. The website load speed is in the 99th percentile now. Up from 85th percentile on apache. A loadimpact test scaling up to 50 concurrent users didn't put a noticeable dent in the server.

  • Yeah...I just downloaded it and extracted it out. Seems very simple to install. Its up and running. I have to setup MySql on here though first. I have read about it as well and it seems like it is a small but powerful webserver and yields great load times. I am almost tempted to redo my servers which are running apache and use nginx.

Sign In or Register to comment.