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 <[email protected]> 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 [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 -~----------~----~----~----~------~----~------~--~---

