Skip to content

Instantly share code, notes, and snippets.

@quirkey

quirkey/cache.md Secret

Created October 28, 2013 16:19
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 quirkey/0a8cf697b25d207374d5 to your computer and use it in GitHub Desktop.
Save quirkey/0a8cf697b25d207374d5 to your computer and use it in GitHub Desktop.

================================================================================

Running Rails.cache.fetch("sup") { "what" }

Revision 8deb305220ff75fe7f63e851660e9b8958f8442f

[2013-10-28 12:18:37 -0400] Running the profile [2013-10-28 12:18:37 -0400] Done

================================================================================

Basic Stats:

Cache on

  • 100 | User 0.000000 | System 0.050000 | Total 0.050000 | Wall (0.053986)
  • 1 | User 0.000000 | System 0.000500 | Total 0.000500 | Wall (0.000540)

Cache off

  • 100 | User 0.000000 | System 0.060000 | Total 0.060000 | Wall (0.054485)
  • 1 | User 0.000000 | System 0.000600 | Total 0.000600 | Wall (0.000545)

================================================================================

Events

Cache on

  • Cache write 0 in 0.00ms
  • Cache read 1 in 0.81ms
  • Redis 0 in 0.00ms
  • Sql 0 in 0.00ms
  • Objects 244 in 0.00ms

Cache off

  • Cache write 0 in 0.00ms
  • Cache read 1 in 0.87ms
  • Redis 0 in 0.00ms
  • Sql 0 in 0.00ms
  • Objects 244 in 0.00ms

================================================================================

Lineprof

Cache on

--------------------------------------------------------------------------------
     1.3ms +      0.1ms (    1) | lib/paperless/profiler.rb
--------------------------------------------------------------------------------
     0.9ms +      0.1ms (    1) | lib/active_support/cache/dalli_store23.rb
--------------------------------------------------------------------------------
     0.3ms +     -0.0ms (    1) | lib/subscribers/cache_subscriber.rb
--------------------------------------------------------------------------------
     0.0ms +      0.0ms (    1) | lib/subscribers/request_subscriber.rb

Cache off

--------------------------------------------------------------------------------
     1.0ms +      0.1ms (    1) | lib/paperless/profiler.rb
--------------------------------------------------------------------------------
     0.7ms +      0.1ms (    1) | lib/active_support/cache/dalli_store23.rb
--------------------------------------------------------------------------------
     0.3ms +     -0.0ms (    1) | lib/subscribers/cache_subscriber.rb
--------------------------------------------------------------------------------
     0.0ms +      0.0ms (    1) | lib/subscribers/request_subscriber.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment