i had the following code to ball-park the number of possible hits per second my macbook can support:
<% t = Time.now %> <h1>Hello#index</h1> <p>Find me in app/views/hello/index.rhtml</p> <pre> <% for i in 1..100 do %> <%= Time.now %> <%= h @ha %> <%= sanitize @ha %> <%= u @ha %> <%= @ha.to_json %> <%= strip_tags @ha %> <%= Time.now - t %> <%= 1 / (Time.now - t) %> <% end %> so the last number is how many page server this page can support in 1 second if it stops right there. that number is initially about 1800, and then at the end of the loop, it is just 20. this program is not so CPU intensive, it seems... i wonder how come it drops from 1800 to 20 that quickly? thanks. -- 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 rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---