Skip to content

Instantly share code, notes, and snippets.

@norman
Created February 4, 2010 15:09
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 norman/294710 to your computer and use it in GitHub Desktop.
Save norman/294710 to your computer and use it in GitHub Desktop.
| AR |
--------------------------------------------------------------------------------------
find model using id x2000 | 1.264 |
find model using array of ids x2000 | 2.708 |
find unslugged model using friendly id x2000 | 1.954 |
find unslugged model using array of friendly ids x2000 | 2.829 |
find slugged model using friendly id x2000 | 3.305 |
find slugged model using array of friendly ids x2000 | 8.431 |
find cached slugged model using friendly id x2000 | 2.117 |
find cached slugged model using array of friendly ids x2000 | 3.178 |
find model using id, then to_param x2000 | 1.351 |
find unslugged model using friendly id, then to_param x2000 | 1.911 |
find slugged model using friendly id, then to_param x2000 | 5.330 |
find cached slugged model using friendly id, then to_param x2000 | 2.163 |
======================================================================================
Total | 36.542 |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment