Sha256: 42976d6bfc79029139c163c6e46a90e40755cc237ee995106b428d8a1e2a927e
Contents?: true
Size: 426 Bytes
Versions: 1
Compression:
Stored size: 426 Bytes
Contents
require 'benchmark' require File.dirname(__FILE__) + '/../harness' require File.dirname(__FILE__) + '/../harness_cache' LARGE_NUMBER = 200_000 Benchmark.bmbm do |b| b.report('get/set stash') do LARGE_NUMBER.times {|n| stash[:abcxyz123] = n stash[:abcxyz123] } end b.report('get/set cache') do LARGE_NUMBER.times {|n| Cache.set('abcxyz123', n) Cache.get('abcxyz123') } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
binary42-remix-stash-0.9.2 | benchmarks/get_set.rb |