Skip to content

Instantly share code, notes, and snippets.

@bradhe
Last active December 15, 2015 19:49
Show Gist options
  • Save bradhe/5314086 to your computer and use it in GitHub Desktop.
Save bradhe/5314086 to your computer and use it in GitHub Desktop.
Results of ab against ruby 2.0 + reel + Heroku #disappointed
brad@/www/reel_test [master] $ heroku scale web=40
Scaling web processes... done, now running 40
brad@/www/reel_test [master] $ ab -c 1 -n 100 http://reel-test.herokuapp.com/
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 reel-test.herokuapp.com (be patient).....done
Server Software:
Server Hostname: reel-test.herokuapp.com
Server Port: 80
Document Path: /
Document Length: 13 bytes
Concurrency Level: 1
Time taken for tests: 22.030 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Total transferred: 7100 bytes
HTML transferred: 1300 bytes
Requests per second: 4.54 [#/sec] (mean)
Time per request: 220.297 [ms] (mean)
Time per request: 220.297 [ms] (mean, across all concurrent requests)
Transfer rate: 0.31 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 88 96 9.1 94 146
Processing: 93 124 44.8 111 469
Waiting: 91 123 44.9 110 467
Total: 185 220 45.8 208 561
Percentage of the requests served within a certain time (ms)
50% 208
66% 218
75% 230
80% 233
90% 250
95% 300
98% 350
99% 561
100% 561 (longest request)
brad@/www/reel_test [master] $ ab -c 80 -n 200 http://reel-test.herokuapp.com/
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 reel-test.herokuapp.com (be patient)
Completed 100 requests
Completed 200 requests
Finished 200 requests
Server Software:
Server Hostname: reel-test.herokuapp.com
Server Port: 80
Document Path: /
Document Length: 13 bytes
Concurrency Level: 80
Time taken for tests: 0.950 seconds
Complete requests: 200
Failed requests: 0
Write errors: 0
Total transferred: 14839 bytes
HTML transferred: 2717 bytes
Requests per second: 210.51 [#/sec] (mean)
Time per request: 380.028 [ms] (mean)
Time per request: 4.750 [ms] (mean, across all concurrent requests)
Transfer rate: 15.25 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 109 146 20.5 146 199
Processing: 107 164 61.2 151 629
Waiting: 105 163 61.5 147 629
Total: 216 309 66.8 299 784
Percentage of the requests served within a certain time (ms)
50% 299
66% 315
75% 322
80% 336
90% 373
95% 387
98% 459
99% 711
100% 784 (longest request)
require 'bundler/setup'
require 'reel'
Reel::Server.supervise("0.0.0.0", ENV['PORT'] || 3000) do |connection|
while request = connection.request
case request
when Reel::Request
request.respond :ok, "Hello, World!"
end
end
end
sleep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment