Skip to content

Instantly share code, notes, and snippets.

@btaitelb
Created January 18, 2012 00:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save btaitelb/1630017 to your computer and use it in GitHub Desktop.
Save btaitelb/1630017 to your computer and use it in GitHub Desktop.
ab generating more requests than it says?
btaitelb@grew (master)% ab -n 1 -c 1 "http://127.0.0.1:5000/comments"
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).....done
Server Software: thin
Server Hostname: 127.0.0.1
Server Port: 5000
Document Path: /comments
Document Length: 1000 bytes
Concurrency Level: 1
Time taken for tests: 101.961 seconds
Complete requests: 1
Failed requests: 0
Write errors: 0
Total transferred: 1340 bytes
HTML transferred: 1000 bytes
Requests per second: 0.01 [#/sec] (mean)
Time per request: 101960.719 [ms] (mean)
Time per request: 101960.719 [ms] (mean, across all concurrent requests)
Transfer rate: 0.01 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 98368 98368 0.0 98368 98368
Processing: 3593 3593 0.0 3593 3593
Waiting: 0 0 0.0 0 0
Total: 101961 101961 0.0 101961 101961
btaitelb@grew% tail -f log/development.log
Started GET "/comments" for 127.0.0.1 at 2012-01-17 19:27:48 -0500
(0.3ms) SHOW search_path
Processing by CommentsController#index as */*
Comment Load (0.7ms) SELECT "comments".* FROM "comments"
Rendered comments/index.html.erb within layouts/application (38.0ms)
Completed 200 OK in 5106ms (Views: 99.1ms | ActiveRecord: 3.6ms)
Started GET "/comments" for 127.0.0.1 at 2012-01-17 19:27:53 -0500
Processing by CommentsController#index as */*
Comment Load (0.2ms) SELECT "comments".* FROM "comments"
Rendered comments/index.html.erb within layouts/application (0.8ms)
Completed 200 OK in 5013ms (Views: 9.1ms | ActiveRecord: 0.9ms)
Started GET "/comments" for 127.0.0.1 at 2012-01-17 19:27:58 -0500
Processing by CommentsController#index as */*
Comment Load (0.1ms) SELECT "comments".* FROM "comments"
Rendered comments/index.html.erb within layouts/application (0.5ms)
Completed 200 OK in 5012ms (Views: 8.8ms | ActiveRecord: 0.8ms)
Started GET "/comments" for 127.0.0.1 at 2012-01-17 19:28:03 -0500
Processing by CommentsController#index as */*
Comment Load (0.2ms) SELECT "comments".* FROM "comments"
Rendered comments/index.html.erb within layouts/application (0.8ms)
Completed 200 OK in 5013ms (Views: 9.6ms | ActiveRecord: 1.1ms)
Started GET "/comments" for 127.0.0.1 at 2012-01-17 19:28:08 -0500
Processing by CommentsController#index as */*
Comment Load (0.2ms) SELECT "comments".* FROM "comments"
Rendered comments/index.html.erb within layouts/application (0.7ms)
Completed 200 OK in 5015ms (Views: 11.3ms | ActiveRecord: 0.9ms)
Started GET "/comments" for 127.0.0.1 at 2012-01-17 19:28:13 -0500
Processing by CommentsController#index as */*
Comment Load (0.2ms) SELECT "comments".* FROM "comments"
Rendered comments/index.html.erb within layouts/application (0.5ms)
Completed 200 OK in 5012ms (Views: 8.5ms | ActiveRecord: 1.0ms)
Started GET "/comments" for 127.0.0.1 at 2012-01-17 19:28:18 -0500
Processing by CommentsController#index as */*
Comment Load (0.2ms) SELECT "comments".* FROM "comments"
Rendered comments/index.html.erb within layouts/application (0.6ms)
Completed 200 OK in 5012ms (Views: 8.8ms | ActiveRecord: 1.2ms)
Started GET "/comments" for 127.0.0.1 at 2012-01-17 19:28:23 -0500
Processing by CommentsController#index as */*
Comment Load (0.2ms) SELECT "comments".* FROM "comments"
Rendered comments/index.html.erb within layouts/application (0.6ms)
Completed 200 OK in 5013ms (Views: 8.5ms | ActiveRecord: 1.3ms)
Started GET "/comments" for 127.0.0.1 at 2012-01-17 19:28:28 -0500
Processing by CommentsController#index as */*
Comment Load (0.6ms) SELECT "comments".* FROM "comments"
Rendered comments/index.html.erb within layouts/application (0.5ms)
Completed 200 OK in 5012ms (Views: 7.7ms | ActiveRecord: 1.7ms)
Started GET "/comments" for 127.0.0.1 at 2012-01-17 19:28:33 -0500
Processing by CommentsController#index as */*
Comment Load (0.2ms) SELECT "comments".* FROM "comments"
Rendered comments/index.html.erb within layouts/application (0.8ms)
Completed 200 OK in 5014ms (Views: 11.5ms | ActiveRecord: 0.9ms)
Started GET "/comments" for 127.0.0.1 at 2012-01-17 19:28:38 -0500
Processing by CommentsController#index as */*
Comment Load (0.1ms) SELECT "comments".* FROM "comments"
Rendered comments/index.html.erb within layouts/application (0.6ms)
Completed 200 OK in 5012ms (Views: 8.8ms | ActiveRecord: 0.9ms)
Started GET "/comments" for 127.0.0.1 at 2012-01-17 19:28:43 -0500
Processing by CommentsController#index as */*
Comment Load (0.1ms) SELECT "comments".* FROM "comments"
Rendered comments/index.html.erb within layouts/application (0.6ms)
Completed 200 OK in 5011ms (Views: 8.0ms | ActiveRecord: 0.7ms)
Started GET "/comments" for 127.0.0.1 at 2012-01-17 19:28:49 -0500
Processing by CommentsController#index as */*
Comment Load (0.3ms) SELECT "comments".* FROM "comments"
Rendered comments/index.html.erb within layouts/application (0.6ms)
Completed 200 OK in 5014ms (Views: 10.2ms | ActiveRecord: 1.1ms)
Started GET "/comments" for 127.0.0.1 at 2012-01-17 19:28:54 -0500
Processing by CommentsController#index as */*
Comment Load (0.1ms) SELECT "comments".* FROM "comments"
Rendered comments/index.html.erb within layouts/application (0.5ms)
Completed 200 OK in 5011ms (Views: 7.9ms | ActiveRecord: 0.8ms)
Started GET "/comments" for 127.0.0.1 at 2012-01-17 19:28:59 -0500
Processing by CommentsController#index as */*
Comment Load (0.2ms) SELECT "comments".* FROM "comments"
Rendered comments/index.html.erb within layouts/application (0.7ms)
Completed 200 OK in 5013ms (Views: 9.2ms | ActiveRecord: 0.9ms)
Started GET "/comments" for 127.0.0.1 at 2012-01-17 19:29:04 -0500
Processing by CommentsController#index as */*
Comment Load (0.2ms) SELECT "comments".* FROM "comments"
Rendered comments/index.html.erb within layouts/application (0.5ms)
Completed 200 OK in 5012ms (Views: 8.5ms | ActiveRecord: 0.8ms)
Started GET "/comments" for 127.0.0.1 at 2012-01-17 19:29:09 -0500
Processing by CommentsController#index as */*
Comment Load (0.2ms) SELECT "comments".* FROM "comments"
Rendered comments/index.html.erb within layouts/application (0.5ms)
Completed 200 OK in 5012ms (Views: 8.5ms | ActiveRecord: 1.0ms)
Started GET "/comments" for 127.0.0.1 at 2012-01-17 19:29:14 -0500
Processing by CommentsController#index as */*
Comment Load (0.1ms) SELECT "comments".* FROM "comments"
Rendered comments/index.html.erb within layouts/application (1.0ms)
Completed 200 OK in 5013ms (Views: 9.4ms | ActiveRecord: 0.9ms)
Started GET "/comments" for 127.0.0.1 at 2012-01-17 19:29:19 -0500
Processing by CommentsController#index as */*
Comment Load (0.2ms) SELECT "comments".* FROM "comments"
Rendered comments/index.html.erb within layouts/application (1.1ms)
Completed 200 OK in 5014ms (Views: 11.6ms | ActiveRecord: 0.9ms)
Started GET "/comments" for 127.0.0.1 at 2012-01-17 19:29:24 -0500
Processing by CommentsController#index as */*
Comment Load (0.2ms) SELECT "comments".* FROM "comments"
Rendered comments/index.html.erb within layouts/application (0.5ms)
Completed 200 OK in 5011ms (Views: 8.1ms | ActiveRecord: 0.9ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment