Sha256: c11a58ff378f3b14848d812ea4c253709aee3eb7a7747acbcf63d44cd0331d1e
Contents?: true
Size: 775 Bytes
Versions: 12
Compression:
Stored size: 775 Bytes
Contents
require 'benchmark' require File.dirname(__FILE__) + '/../harness' LARGE_NUMBER = 50_000 Benchmark.bmbm do |b| b.report('get/set remix-stash') do LARGE_NUMBER.times {|n| stash[:abcxyz123] = n stash[:abcxyz123] } end b.report('get/set remix-stash named') do LARGE_NUMBER.times {|n| stash(:stuff)[:abcxyz123] = n stash(:stuff)[:abcxyz123] } end if defined?(CCache) b.report('get/set memcached') do LARGE_NUMBER.times {|n| CCache.set('abcxyz123', n, 0 , true) CCache.get('abcxyz123', true) } end end if defined?(RCache) b.report('get/set memcache-client') do LARGE_NUMBER.times {|n| RCache.set('abcxyz123', n) RCache.get('abcxyz123') } end end end
Version data entries
12 entries across 12 versions & 2 rubygems