Skip to content

Instantly share code, notes, and snippets.

@drogus
Created January 5, 2009 20:50
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 drogus/43537 to your computer and use it in GitHub Desktop.
Save drogus/43537 to your computer and use it in GitHub Desktop.
| AR 2.2.2 | DM 0.9.8 | Sq 2.8.0 |
-----------------------------------------------------------------------------------------
Model.new (instantiation) x10000 | 0.643 | 0.060 | 9.764 |
Model.new (setting attributes) x10000 | 2.810 | 1.546 | 10.862 |
Model.get specific (not cached) x10000 | 11.510 | 24.749 | 16.524 |
Model.get specific (cached) x10000 | 12.190 | 1.165 | |
Model.first x10000 | 10.292 | 18.622 | 13.425 |
Model.all limit(100) x1000 | 31.162 | 38.043 | 33.985 |
Model.all limit(100) with relationship x1000 | 63.097 | 245.763 | 204.498 |
Model.all limit(10,000) x10 | 28.371 | 36.127 | 30.088 |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment