Created
August 9, 2014 13:36
-
-
Save fsaravia/7810c2aec67901d886e3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
ENV['CPUPROFILE_REALTIME'] = 1 | |
require 'perftools' | |
require 'rspec' | |
dirs = [] | |
dirs.concat Dir["./spec/models/*.rb"] | |
dirs.concat Dir["./spec/routes/*.rb"] | |
dirs.concat Dir["./spec/helpers/*.rb"] | |
dirs.concat Dir["./spec/script/*.rb"] | |
RSpec::Core::Runner.disable_autorun! | |
PerfTools::CpuProfiler.start("tmp/add_numbers_profile") do | |
RSpec::Core::Runner.run(dirs) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment