benchmark (ActionView::Helpers::BenchmarkHelper)

    # File lib/action_view/helpers/benchmark_helper.rb, line 34
          def benchmark(message = "Benchmarking", options = {})
            if controller.logger
              if options.is_a?(Symbol)
                ActiveSupport::Deprecation.warn("use benchmark('#{message}', :level => :#{options}) instead", caller)
                options = { :level => options, :silence => false }
              else
                options.assert_valid_keys(:level, :silence)
                options[:level] ||= :info
              end

              result = nil
              ms = Benchmark.ms { result = options[:silence] ? controller.logger.silence { yield } : yield }
              controller.logger.send(options[:level], '%s (%.1fms)' % [ message, ms ])
              result
            else
              yield
            end
          end