Check the performance of helpers

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>

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

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...@andreas-s.net>

Thanks