Last active
September 14, 2015 04:38
-
-
Save awinabi/d6387f1fb431ff4d1b48 to your computer and use it in GitHub Desktop.
Rails Performance Testing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'rails-perftest' | |
gem 'ruby-prof' # for MRI profiling |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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