Created
September 8, 2008 21:36
-
-
Save paul/9546 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You can specify how many times you want to run the benchmarks with rake:perf x=(number) | |
Some tasks will be run 10 and 1000 times less than (number) | |
Benchmarks will now run 10000 times | |
| DM 0.9.4 | AR 2.1 | DIFF | | |
-------------------------------------------------------------------------------- | |
Model.get specific (not cached) x10000 | 29.548 | 15.131 | 1.95x | | |
Model.get specific (cached) x10000 | 1.573 | 15.245 | 0.10x | | |
Model.first x10000 | 22.623 | 14.991 | 1.51x | | |
Model.all limit(100) x1000 | 28.172 | 31.094 | 0.91x | | |
Model.all limit(10,000) x10 | 26.626 | 33.923 | 0.78x | | |
Model.create x10000 | 117.788 | 44.429 | 2.65x | | |
Resource#update x10000 | 29.851 | 29.284 | 1.02x | | |
Resource#destroy x10000 | 49.456 | 35.475 | 1.39x | | |
================================================================================ | |
Total | 305.637 | 219.572 | 1.29x | | |
Model.new (instantiation) x10000 | 1.016 | 0.563 | 1.81x | | |
Model.new (overwrite init attr={}) x10000 | 0.051 | 0.527 | 0.10x | | |
Model.new (empty init) x10000 | 0.019 | 0.540 | 0.03x | | |
Model.new (@@_valid_moded flag) x10000 | 0.067 | 0.547 | 0.12x | | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment