Skip to content

Instantly share code, notes, and snippets.

@mutle
Created July 15, 2009 19:03
Show Gist options
  • Save mutle/147911 to your computer and use it in GitHub Desktop.
Save mutle/147911 to your computer and use it in GitHub Desktop.
>> m = Rails.cache.instance_eval("@data")
=> <MemCache: 3 servers, ns: nil, ro: false>
>> t = Time.now.to_f; m.get('a'); puts "#{Time.now.to_f - t}"
0.000349998474121094
=> nil
>> t = Time.now.to_f; Rails.cache.read('b'); puts "#{Time.now.to_f - t}"
0.0184650421142578
=> nil
>> 0.0184650421142578 / 0.000349998474121094
=> 52.7574931880108
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment