I'm using Ruby 1.9.2, Rails 3.0.3, Passenger 3.0.0 and MySQL 5.1
rails new library
cd library
rails generate scaffold Book name:string
rake db:migrate RAILS_ENV=production
rails console production
200.times { |i| Book.create(:name => "Book #{i}") }
ab -n 100 -c 10 http://testlibrary.dyndns.org/books
This gives me a pathetic 4.55 requests/sec
Here is the log
Started GET "/books" for 189.71.229.236 at 2010-12-08 18:12:11 +0000
Processing by BooksController#index as HTML
Rendered books/index.html.erb within layouts/application (349.2ms)
Completed 200 OK in 359ms (Views: 349.9ms | ActiveRecord: 0.2ms)
359 ms for a 2.9 KB page
What is wrong? I was expecting something like 50-100 requests/sec
I remember trying this before in rails 2.3.8 and it was much faster
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.