Performance testing

I’m getting under 5000 requests per second hitting just the nginx
welcome
page on a default configuration.

Any tips to improve this please?

setup is:

macbook pro retina 10.8.3
RoverMR:webserver rover$ nginx -v
nginx version: nginx/1.4.3

== Running ab test ==

RoverMR:webserver rover$ ab -n 1000 -c 100 http://127.0.0.1/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 127.0.0.1 (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests

Server Software: nginx/1.4.3
Server Hostname: 127.0.0.1
Server Port: 80

Document Path: /
Document Length: 612 bytes

Concurrency Level: 100
Time taken for tests: 0.268 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 844000 bytes
HTML transferred: 612000 bytes
Requests per second: 3729.66 [#/sec] (mean)
Time per request: 26.812 [ms] (mean)
Time per request: 0.268 [ms] (mean, across all concurrent
requests)
Transfer rate: 3074.06 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 1 12 3.1 13 17
Processing: 1 13 2.5 14 18
Waiting: 1 13 2.6 14 18
Total: 17 25 3.5 26 30

Percentage of the requests served within a certain time (ms)
50% 26
66% 27
75% 28
80% 28
90% 29
95% 29
98% 30
99% 30
100% 30 (longest request)
RoverMR:webserver rover$

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,244110,244110#msg-244110

AB is not good enough for testing…

Use http://redmine.lighttpd.net/projects/weighttp/wiki

on debian-like install “libevent-dev”

AB didn’t use multicore/thread…

With weighttp I was able to hit 100 000q/s

2013/10/25 youreright [email protected]:

Completed 300 requests
Server Software: nginx/1.4.3
Write errors: 0
Processing: 1 13 2.5 14 18
98% 30
99% 30
100% 30 (longest request)
RoverMR:webserver rover$

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,244110,244110#msg-244110


nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx


Geoffrey HARTZ

And what were you up to with ab? Can you check both real quick?

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,244110,244112#msg-244112

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs