Skip to content

Instantly share code, notes, and snippets.

@jamesgolick
Created November 8, 2011 01:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesgolick/1346712 to your computer and use it in GitHub Desktop.
Save jamesgolick/1346712 to your computer and use it in GitHub Desktop.
irb(main):061:0> puts Benchmark.measure { $memcached.get(keys) }
0.000000 0.000000 0.000000 ( 0.001995)
=> nil
irb(main):062:0> puts Benchmark.measure { Rails.cache.read_multi(*keys) }
0.010000 0.010000 0.020000 ( 0.044255)
=> nil
irb(main):063:0> puts Benchmark.measure { Rails.cache.read_multi(*keys) }
0.000000 0.000000 0.000000 ( 0.043445)
=> nil
irb(main):064:0> puts Benchmark.measure { $memcached.get(keys) }
0.000000 0.000000 0.000000 ( 0.001753)
=> nil
irb(main):065:0> puts Benchmark.measure { Rails.cache.read_multi(*keys) }
0.010000 0.000000 0.010000 ( 0.066122)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment