# Performance testing

**URL:** <https://www.ruby-forum.com/t/performance-testing/237125>\
**Category:** NGINX\
**Created:** [October 25, 2013, 2:29pm UTC](https://www.ruby-forum.com/t/performance-testing/237125 "2013-10-25T14:29:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [October 25, 2013, 2:29pm UTC](https://www.ruby-forum.com/t/performance-testing/237125/1 "2013-10-25T14:29:15Z")

</div>

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/](http://127.0.0.1/)  
This is ApacheBench, Version 2.3 \<$Revision: 655654 $\>  
Copyright 1996 Adam Twiss, Zeus Technology Ltd, [http://www.zeustech.net/](http://www.zeustech.net/)  
Licensed to The Apache Software Foundation, [http://www.apache.org/](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:

> **[performance testing](https://forum.nginx.org/read.php?2,244110,244110#msg-244110)**
>
> 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

---

<div class="post-metadata">

**Author:** ![youreright](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/b487fb/32.png) [@youreright](https://www.ruby-forum.com/u/youreright)\
**Post date:** [October 25, 2013, 2:33pm UTC](https://www.ruby-forum.com/t/performance-testing/237125/2 "2013-10-25T14:33:21Z")

</div>

AB is not good enough for testing…

Use [Start - weighttp - lighty labs](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 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> 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:  
> [performance testing](http://forum.nginx.org/read.php?2,244110,244110#msg-244110)
> 
> * * *
> 
> nginx mailing list  
> removed\_email\_address@domain.invalid  
> [nginx Info Page](http://mailman.nginx.org/mailman/listinfo/nginx)

–  
Geoffrey HARTZ

---

<div class="post-metadata">

**Author:** ![youreright](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/b487fb/32.png) [@youreright](https://www.ruby-forum.com/u/youreright)\
**Post date:** [October 25, 2013, 2:38pm UTC](https://www.ruby-forum.com/t/performance-testing/237125/3 "2013-10-25T14:38:02Z")

</div>

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

Posted at Nginx Forum:

> **[Re: performance testing](https://forum.nginx.org/read.php?2,244110,244112#msg-244112)**
>
> 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
