railties/lib/rails/generators/rails/benchmark/templates/benchmark.rb.tt

Summary

Maintainability
Test Coverage
# frozen_string_literal: true

require_relative "../../config/environment"

# Any benchmarking setup goes here...



Benchmark.ips do |x|
<%- reports.each do |report| -%>
  x.report("<%= report %>") { }
<%- end -%>

  x.compare!
end