Skip to content

Instantly share code, notes, and snippets.

@solnic
Created January 20, 2009 21:55
Show Gist options
  • Save solnic/49687 to your computer and use it in GitHub Desktop.
Save solnic/49687 to your computer and use it in GitHub Desktop.
| AR 2.2.2 | DM 0.10.0 | DIFF |
-----------------------------------------------------------------------------------------
Model#id x100000 | 1.139 | 0.421 | 2.70x |
Model.new (instantiation) x10000 | 0.319 | 0.025 | 12.93x |
Model.new (setting attributes) x10000 | 1.140 | 0.587 | 1.94x |
Model.get specific (not cached) x10000 | 4.756 | 5.782 | 0.82x |
Model.get specific (cached) x10000 | 4.684 | 0.271 | 17.31x |
Model.first x10000 | 4.114 | 4.527 | 0.91x |
Model.all limit(100) x1000 | 9.353 | 8.903 | 1.05x |
Model.all limit(100) with relationship x1000 | 19.509 | 63.259 | 0.31x |
Model.all limit(10,000) x10 | 9.600 | 9.517 | 1.01x |
Model.create x10000 | 30.280 | 18.392 | 1.65x |
Resource#attributes= x10000 | 1.978 | 1.081 | 1.83x |
Resource#update x10000 | 10.679 | 8.621 | 1.24x |
Resource#destroy x10000 | 21.949 | 21.927 | 1.00x |
Model.transaction x10000 | 2.980 | 4.491 | 0.66x |
=========================================================================================
Total | 122.480 | 147.804 | 3.24x |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment