On Apr 22, 6:49 pm, SpringFlowers AutumnMoon <rails-mailing-
l...@andreas-s.net> wrote:
> 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.
>
there is no process created.
I'm not saying that there is no fixed cost, I'm saying that your test
doesn't cover a large portion of the fixed cost
Fred
> --
> Posted viahttp://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
-~----------~----~----~----~------~----~------~--~---