Sha256: cc182cec102e6215f7e0dcc61a3192cf7b7f651d789a719128346f05d65d9370
Contents?: true
Size: 390 Bytes
Versions: 1
Compression:
Stored size: 390 Bytes
Contents
require 'rubygems' require 'benchmark' require_relative 'cache_runner' RUNS = 4000 class ARCreator include ActiveRecordObjects end def run(obj, bench) bench.report("#{obj.class.name}:") do obj.prepare obj.run end end create_database(RUNS) Benchmark.bmbm do |x| run(FindRunner.new(RUNS), x) run(FetchMissRunner.new(RUNS), x) run(FetchHitRunner.new(RUNS), x) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
identity_cache-0.0.3 | performance/cpu.rb |