Skip to content

Instantly share code, notes, and snippets.

@dblock
Last active December 11, 2015 09:58
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 dblock/4583039 to your computer and use it in GitHub Desktop.
Save dblock/4583039 to your computer and use it in GitHub Desktop.

Mongoid::CachedJson 1.2.3

Benchmarking 1.2.3 with ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0], Dalli 2.6.0

  • dalli_store:flat => 4.070754
  • dalli_store:manager => 2.670791
  • dalli_store:artwork => 4.310461
  • dalli_store:child_secret => 1.058889
  • dalli_store:child_not_secret => 0.800552
  • dalli_store:parent_with_secret => 3.577661
  • dalli_store:habtm => 7.114037
  • dalli_store:habtm_image => 2.510488
  • dalli_store:transform => 0.105983
  • dalli_store:poly_parent => 2.250158
  • dalli_store:embedded => 0.120326
  • dalli_store:referenced => 0.659364
  • dalli_store:company => 0.347238
  • dalli_store:person => 0.364617
  • dalli_store:company_post => 3.62738
  • dalli_store:person_post => 3.371682
  • dalli_store:cell => 3.330159
  • dalli_store:tool_box => 0.368917
  • dalli_store:hammer => 1.656822
  • dalli_store:screwdriver => 1.137843
  • dalli_store:saw => 1.142721

dalli_store => 2.1236591904761903

  • memory_store:flat => 1.854435
  • memory_store:manager => 1.513453
  • memory_store:artwork => 2.964676
  • memory_store:child_secret => 0.459246
  • memory_store:child_not_secret => 0.452774
  • memory_store:parent_with_secret => 2.440281
  • memory_store:habtm => 4.309368
  • memory_store:habtm_image => 1.216236
  • memory_store:transform => 0.066317
  • memory_store:poly_parent => 1.496737
  • memory_store:embedded => 0.06292
  • memory_store:referenced => 0.376535
  • memory_store:company => 0.21446
  • memory_store:person => 0.19522
  • memory_store:company_post => 2.083209
  • memory_store:person_post => 1.873054
  • memory_store:cell => 1.714154
  • memory_store:tool_box => 0.189576
  • memory_store:hammer => 0.84643
  • memory_store:screwdriver => 0.642093
  • memory_store:saw => 0.672648

memory_store => 1.2211343809523807

1.3.0

Benchmarking 1.3.0 with ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0], Dalli 2.6.0

  • dalli_store:flat => 3.798196
  • dalli_store:manager => 2.170557
  • dalli_store:artwork => 3.729114
  • dalli_store:child_secret => 0.97362
  • dalli_store:child_not_secret => 0.668758
  • dalli_store:parent_with_secret => 3.091273
  • dalli_store:habtm => 6.188733
  • dalli_store:habtm_image => 2.238168
  • dalli_store:transform => 0.144967
  • dalli_store:poly_parent => 3.006729
  • dalli_store:embedded => 0.123758
  • dalli_store:referenced => 0.6804
  • dalli_store:company => 0.367496
  • dalli_store:person => 0.371063
  • dalli_store:company_post => 1.646923
  • dalli_store:person_post => 1.297636
  • dalli_store:cell => 3.042213
  • dalli_store:tool_box => 0.383166
  • dalli_store:hammer => 1.694336
  • dalli_store:screwdriver => 1.232745
  • dalli_store:saw => 1.227149

dalli_store => 1.813190476190476

  • memory_store:flat => 1.863927
  • memory_store:manager => 1.404301
  • memory_store:artwork => 2.808167
  • memory_store:child_secret => 0.459997
  • memory_store:child_not_secret => 0.476755
  • memory_store:parent_with_secret => 2.390083
  • memory_store:habtm => 4.177089
  • memory_store:habtm_image => 1.264012
  • memory_store:transform => 0.068225
  • memory_store:poly_parent => 2.323637
  • memory_store:embedded => 0.070737
  • memory_store:referenced => 0.422359
  • memory_store:company => 0.192953
  • memory_store:person => 0.151144
  • memory_store:company_post => 1.244261
  • memory_store:person_post => 1.099991
  • memory_store:cell => 2.185971
  • memory_store:tool_box => 0.19887
  • memory_store:hammer => 1.123422
  • memory_store:screwdriver => 1.07723
  • memory_store:saw => 1.079345

memory_store => 1.2420226666666667

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment