Skip to content

Instantly share code, notes, and snippets.

@pedromenezes
Created June 13, 2010 16:04
Show Gist options
  • Save pedromenezes/436773 to your computer and use it in GitHub Desktop.
Save pedromenezes/436773 to your computer and use it in GitHub Desktop.
# ab -n 500 -c 30 http://127.0.0.1:4567/
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)
Server Software: WEBrick/1.3.1
Server Hostname: 127.0.0.1
Server Port: 4567
Document Path: /
Document Length: 18 bytes
Concurrency Level: 30
Time taken for tests: 2.627 seconds
Complete requests: 500
Failed requests: 466
(Connect: 0, Receive: 0, Length: 466, Exceptions: 0)
Write errors: 0
Total transferred: 92496 bytes
HTML transferred: 8496 bytes
Requests per second: 190.32 [#/sec] (mean)
Time per request: 157.631 [ms] (mean)
Time per request: 5.254 [ms] (mean, across all concurrent requests)
Transfer rate: 34.38 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.3 0 2
Processing: 17 42 28.8 37 451
Waiting: 15 39 28.5 35 445
Total: 17 42 28.9 37 453
Percentage of the requests served within a certain time (ms)
50% 37
66% 41
75% 44
80% 47
90% 61
95% 67
98% 85
99% 94
100% 453 (longest request)
sudo /usr/sbin/varnishd -P /var/run/varnishd.pid \
-a 0.0.0.0:81 \
-T 0.0.0.0:4568 \
-f /etc/varnish/default.vcl \
-s malloc,10M
# ab -n 500 -c 30 http://127.0.0.1:81/
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)
Server Software: WEBrick/1.3.1
Server Hostname: 127.0.0.1
Server Port: 81
Document Path: /
Document Length: 18 bytes
Concurrency Level: 30
Time taken for tests: 0.206 seconds
Complete requests: 500
Failed requests: 0
Write errors: 0
Total transferred: 128380 bytes
HTML transferred: 9432 bytes
Requests per second: 2432.87 [#/sec] (mean)
Time per request: 12.331 [ms] (mean)
Time per request: 0.411 [ms] (mean, across all concurrent requests)
Transfer rate: 610.02 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 2 1.2 1 12
Processing: 0 10 7.1 8 29
Waiting: 0 8 6.8 6 28
Total: 0 11 7.2 10 31
Percentage of the requests served within a certain time (ms)
50% 10
66% 14
75% 17
80% 18
90% 21
95% 26
98% 29
99% 30
100% 31 (longest request)
require 'sinatra'
get '/' do
999.times do
rand
end
rand.to_s
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment