how to check the performance of helpers. For ex if am using content_tag for creating li instead of writing <li></li> directly.I want to check how much time content_tag will take time to excute as <li></li> -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
You could probably set up a benchmark, but the more important question is: WHY? Worrying about something that probably takes a couple extra microseconds isn''t likely to yield any benefit, unless you''re rendering thousands of elements. ...and if you''re doing that, you probably need to look into some pagination, not the performance implications of content_tag. --Matt Jones On Feb 19, 5:46 am, Nike Mike <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> how to check the performance of helpers. > > For ex if am using content_tag for creating li instead of writing > <li></li> directly.I want to check how much time content_tag will take > time to excute as <li></li> > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Matt Jones wrote:> You could probably set up a benchmark, but the more important question > is: WHY? > Worrying about something that probably takes a couple extra > microseconds isn''t > likely to yield any benefit, unless you''re rendering thousands of > elements. > > ...and if you''re doing that, you probably need to look into some > pagination, not the > performance implications of content_tag. > > --Matt Jones > > On Feb 19, 5:46�am, Nike Mike <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---