View application.rb
class Application < Rails::Application
config.assets.quiet = true
config.generators do |generate|
generate.helper false
generate.javascript_engine false
generate.request_specs false
generate.routing_specs false
generate.stylesheets false
generate.test_framework :rspec
generate.view_specs false
View benchmark.rb
require 'mysql2'
require 'benchmark'
user = 'USER'
password = 'PASSWORD'
database = 'benchmark'
client = Mysql2::Client.new(host: 'localhost', username: user, password: password, database: database)
Benchmark.bmbm do |x|