Frederick Cheung wrote:

> after the 1st iteration through the loop you have used (aparently)
> 1/1800 of a second.
> having done 100 iterations, you've used 1/20th of a second ie aprox
> 1/1800 * 100. How is it a surprise that doing something 100 times
> takes roughly 100 times as long as doing it once.
> 
> This "benchmark" is also only testing erb - it is not testing any of
> the actioncontroller, routing etc... (you might find ab enough for
> your needs(
> 
> Fred

hm, i think i am looking for more fixed cost... such as running the loop 
1 time, the machine can serve 1800 pages per second and running the loop 
100 times, the machine can serve 200 pages per second.  so you are 
saying that fixed cost is minimal and it is largely just the execution 
time?   fixed cost involves forking a process, for example...  but is it 
true that there is no newly created process when a page is served? 
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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to