benchmark(message = "Benchmarking", options = {})
Instance Public methods
Allows you to measure the execution time of a block in a template and
records the result to the log. Wrap this block around expensive operations
or possible bottlenecks to get a time reading for the operation. For
example, let's say you thought your file processing method was taking
too long; you could wrap it in a benchmark block.
<% benchmark 'Process data files' do %>
<%= expensive_files_operati