Skip to content

Instantly share code, notes, and snippets.

@awinabi
Last active September 14, 2015 04:38
Show Gist options
  • Save awinabi/d6387f1fb431ff4d1b48 to your computer and use it in GitHub Desktop.
Save awinabi/d6387f1fb431ff4d1b48 to your computer and use it in GitHub Desktop.
Rails Performance Testing
gem 'rails-perftest'
gem 'ruby-prof' # for MRI profiling
require 'test_helper'
require 'rails/performance_test_help'
class HomepageTest < ActionDispatch::PerformanceTest
# Refer to the documentation for all available options
# self.profile_options = { runs: 5, metrics: [:wall_time, :memory],
# output: 'tmp/performance', formats: [:flat] }
test "homepage" do
get '/'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment