Sha256: 63105267082814a8c0f10521e55b89592da0c072ff684f7b436a7fc7a6e7eae8
Contents?: true
Size: 455 Bytes
Versions: 1
Compression:
Stored size: 455 Bytes
Contents
require 'rubygems' require 'benchmark' require 'ruby-prof' require_relative 'cache_runner' RUNS = 1000 RubyProf.measure_mode = RubyProf::CPU_TIME def run(obj) obj.prepare RubyProf.start obj.run result = RubyProf.stop puts "Results for #{obj.class.name}:" printer = RubyProf::FlatPrinter.new(result) printer.print(STDOUT) end create_database(RUNS) run(FindRunner.new(RUNS)) run(FetchMissRunner.new(RUNS)) run(FetchHitRunner.new(RUNS))
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
identity_cache-0.0.3 | performance/profile.rb |