[Rails] Re: Which is faster, calling helpers or rendering a partial?

Pazu pazu at pazu.com.br
Thu Apr 27 19:29:57 GMT 2006


PJ Hyett <pjhyett at ...> writes:

> I just threw together a dead simple test putting partials and helpers
> up head-to-head. I'm not sure this is all that effective of a test,
> but I thought it was worth trying.
> 
> Short version (load times):
> Partial (0.01553)
> Helper (0.00030)

Hint: page rendering time should be nothing next to the time taken in business
and database code. Even if helper is ten times faster, it probably won't make
any real difference.

-- Pazu



More information about the Rails mailing list