Skip to content

Instantly share code, notes, and snippets.

@miloops
Created October 14, 2010 15:55
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 miloops/626442 to your computer and use it in GitHub Desktop.
Save miloops/626442 to your computer and use it in GitHub Desktop.
IM
| AR |
------------------------------------------------------------------
Model#id x100000 | 0.796 |
Model.new (instantiation) x10000 | 0.303 |
Model.new (setting attributes) x10000 | 0.746 |
Model.first x10000 | 3.740 |
Model.all limit(100) x1000 | 13.367 |
Model.all limit(100) with relationship x1000 | 16.412 |
Model.all limit(10,000) x10 | 12.141 |
Model.create x10000 | 21.890 |
Resource#attributes= x10000 | 0.991 |
Resource#update x10000 | 9.818 |
Resource#destroy x10000 | 24.915 |
Model.transaction x10000 | 2.097 |
Model.find(id) x10000 | 2.815 |
Model.find_by_sql x10000 | 1.390 |
Model.log x100000 | 1.464 |
AR.execute(query) x5000 | 6.593 |
==================================================================
Total | 119.477 |
master
| AR |
------------------------------------------------------------------
Model#id x100000 | 0.806 |
Model.new (instantiation) x10000 | 0.295 |
Model.new (setting attributes) x10000 | 0.755 |
Model.first x10000 | 3.722 |
Model.all limit(100) x1000 | 13.426 |
Model.all limit(100) with relationship x1000 | 15.875 |
Model.all limit(10,000) x10 | 11.753 |
Model.create x10000 | 34.416 |
Resource#attributes= x10000 | 0.937 |
Resource#update x10000 | 8.786 |
Resource#destroy x10000 | 23.904 |
Model.transaction x10000 | 1.988 |
Model.find(id) x10000 | 2.829 |
Model.find_by_sql x10000 | 1.402 |
Model.log x100000 | 1.467 |
AR.execute(query) x5000 | 6.623 |
==================================================================
Total | 128.984 |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment