Skip to content

Instantly share code, notes, and snippets.

@niwinz
Created October 10, 2012 15:55
Show Gist options
  • Save niwinz/3866512 to your computer and use it in GitHub Desktop.
Save niwinz/3866512 to your computer and use it in GitHub Desktop.
benchmarks
[3/5.0.0]niwi@vaio:~/wrk> ab -n 10000 -c 2 http://127.0.0.1:8000/section0/feature0
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 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests
Server Software:
Server Hostname: 127.0.0.1
Server Port: 8000
Document Path: /section0/feature0
Document Length: 12 bytes
Concurrency Level: 2
Time taken for tests: 1.394 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 910000 bytes
HTML transferred: 120000 bytes
Requests per second: 7171.38 [#/sec] (mean)
Time per request: 0.279 [ms] (mean)
Time per request: 0.139 [ms] (mean, across all concurrent requests)
Transfer rate: 637.30 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 3
Processing: 0 0 0.1 0 5
Waiting: 0 0 0.1 0 5
Total: 0 0 0.1 0 5
Percentage of the requests served within a certain time (ms)
50% 0
66% 0
75% 0
80% 0
90% 0
95% 0
98% 0
99% 0
100% 5 (longest request)
(env)[3/5.0.0]niwi@vaio:~/helloworld/02-routing/bottle> uwsgi -w app:main --http-socket :8000 -p 2 -H ../env/ -L
*** Starting uWSGI 1.1 (64bit) on [Wed Oct 10 17:47:19 2012] ***
compiled with version: 4.6.3 on 20 March 2012 20:16:01
current working directory: /home/niwi/helloworld/02-routing/bottle
detected binary path: /usr/bin/uwsgi
*** WARNING: you are running uWSGI without its master process manager ***
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread mutexes
uwsgi socket 0 bound to TCP address :8000 fd 3
Python version: 2.7.3 (default, Apr 24 2012, 00:00:54) [GCC 4.7.0 20120414 (prerelease)]
Set PythonHome to ../env/
Python main interpreter initialized at 0x21c4e20
your server socket listen backlog is limited to 100 connections
*** Operational MODE: preforking ***
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x21c4e20 pid: 3287 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (pid: 3287, cores: 1)
spawned uWSGI worker 2 (pid: 3288, cores: 1)
[3/5.0.0]niwi@vaio:~/wrk> ab -n 10000 -c 2 http://127.0.0.1:8000/section0/feature0
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 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests
Server Software:
Server Hostname: 127.0.0.1
Server Port: 8000
Document Path: /section0/feature0
Document Length: 12 bytes
Concurrency Level: 2
Time taken for tests: 2.461 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 710071 bytes
HTML transferred: 120012 bytes
Requests per second: 4064.14 [#/sec] (mean)
Time per request: 0.492 [ms] (mean)
Time per request: 0.246 [ms] (mean, across all concurrent requests)
Transfer rate: 281.82 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 6
Processing: 0 0 0.4 0 22
Waiting: 0 0 0.3 0 22
Total: 0 0 0.4 0 28
Percentage of the requests served within a certain time (ms)
50% 0
66% 1
75% 1
80% 1
90% 1
95% 1
98% 1
99% 1
100% 28 (longest request)
(env)[3/5.0.0]niwi@vaio:~/helloworld/02-routing/django> uwsgi -w app:main --http-socket :8000 -p 2 -H ../env/ -L
*** Starting uWSGI 1.1 (64bit) on [Wed Oct 10 17:43:42 2012] ***
compiled with version: 4.6.3 on 20 March 2012 20:16:01
current working directory: /home/niwi/helloworld/02-routing/django
detected binary path: /usr/bin/uwsgi
*** WARNING: you are running uWSGI without its master process manager ***
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread mutexes
uwsgi socket 0 bound to TCP address :8000 fd 3
Python version: 2.7.3 (default, Apr 24 2012, 00:00:54) [GCC 4.7.0 20120414 (prerelease)]
Set PythonHome to ../env/
Python main interpreter initialized at 0x235ae20
your server socket listen backlog is limited to 100 connections
*** Operational MODE: preforking ***
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x235ae20 pid: 1746 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (pid: 1746, cores: 1)
spawned uWSGI worker 2 (pid: 1747, cores: 1)
[3/5.0.0]niwi@vaio:~/wrk> ab -n 10000 -c 2 http://127.0.0.1:8000/section0/feature0
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 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests
Server Software:
Server Hostname: 127.0.0.1
Server Port: 8000
Document Path: /section0/feature0
Document Length: 12 bytes
Concurrency Level: 2
Time taken for tests: 4.412 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 910000 bytes
HTML transferred: 120000 bytes
Requests per second: 2266.35 [#/sec] (mean)
Time per request: 0.882 [ms] (mean)
Time per request: 0.441 [ms] (mean, across all concurrent requests)
Transfer rate: 201.40 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 1 1 0.4 1 11
Waiting: 0 1 0.3 1 11
Total: 1 1 0.4 1 11
Percentage of the requests served within a certain time (ms)
50% 1
66% 1
75% 1
80% 1
90% 1
95% 1
98% 1
99% 2
100% 11 (longest request)
(env)[3/5.0.0]niwi@vaio:~/helloworld/02-routing/flask> uwsgi -w app:main --http-socket :8000 -p 2 -H ../env/ -L
*** Starting uWSGI 1.1 (64bit) on [Wed Oct 10 17:48:38 2012] ***
compiled with version: 4.6.3 on 20 March 2012 20:16:01
current working directory: /home/niwi/helloworld/02-routing/flask
detected binary path: /usr/bin/uwsgi
*** WARNING: you are running uWSGI without its master process manager ***
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread mutexes
uwsgi socket 0 bound to TCP address :8000 fd 3
Python version: 2.7.3 (default, Apr 24 2012, 00:00:54) [GCC 4.7.0 20120414 (prerelease)]
Set PythonHome to ../env/
Python main interpreter initialized at 0x102ce20
your server socket listen backlog is limited to 100 connections
*** Operational MODE: preforking ***
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x102ce20 pid: 3844 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (pid: 3844, cores: 1)
spawned uWSGI worker 2 (pid: 3845, cores: 1)
[3/5.0.0]niwi@vaio:~/wrk> ab -n 10000 -c 2 http://127.0.0.1:8000/section0/feature0
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 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests
Server Software:
Server Hostname: 127.0.0.1
Server Port: 8000
Document Path: /section0/feature0
Document Length: 12 bytes
Concurrency Level: 2
Time taken for tests: 1.412 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 1150000 bytes
HTML transferred: 120000 bytes
Requests per second: 7084.59 [#/sec] (mean)
Time per request: 0.282 [ms] (mean)
Time per request: 0.141 [ms] (mean, across all concurrent requests)
Transfer rate: 795.63 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 3
Processing: 0 0 0.1 0 4
Waiting: 0 0 0.1 0 4
Total: 0 0 0.1 0 4
Percentage of the requests served within a certain time (ms)
50% 0
66% 0
75% 0
80% 0
90% 0
95% 0
98% 0
99% 0
100% 4 (longest request)
(env)[3/5.0.0]niwi@vaio:~/helloworld/02-routing/wheezy.web> uwsgi -w app:main --http-socket :8000 -p 2 -H ../env/ -L
*** Starting uWSGI 1.1 (64bit) on [Wed Oct 10 17:45:11 2012] ***
compiled with version: 4.6.3 on 20 March 2012 20:16:01
current working directory: /home/niwi/helloworld/02-routing/wheezy.web
detected binary path: /usr/bin/uwsgi
*** WARNING: you are running uWSGI without its master process manager ***
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread mutexes
uwsgi socket 0 bound to TCP address :8000 fd 3
Python version: 2.7.3 (default, Apr 24 2012, 00:00:54) [GCC 4.7.0 20120414 (prerelease)]
Set PythonHome to ../env/
Python main interpreter initialized at 0x1f8be20
your server socket listen backlog is limited to 100 connections
*** Operational MODE: preforking ***
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x1f8be20 pid: 2384 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (pid: 2384, cores: 1)
spawned uWSGI worker 2 (pid: 2396, cores: 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment