# File lib/active_support/testing/performance/ruby.rb, line 114definitialize(*args)
# FIXME: yeah my CPU is 2.33 GHzRubyProf.cpu_frequency = 2.33e9unlessRubyProf.cpu_frequency>0superend
Public Instance Methods
measure()click to toggle source
# File lib/active_support/testing/performance/jruby.rb, line 84defmeasureManagementFactory.thread_mx_bean.get_current_thread_cpu_time/1000/1000/1000.0# secondsend