Created
July 31, 2011 20:15
-
-
Save joakimk/1117167 to your computer and use it in GitHub Desktop.
Some simple ruby 1.9.3 benchmarks
This file contains hidden or 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
| The two rubies: | |
| - 1.9.2 "ruby-1.9.2-p180-patched" (using https://raw.github.com/gist/1008945/7532898172cd9f03b4c0d0db145bc2440dcbb2f6/load.patch) | |
| - 1.9.3 "ruby-1.9.3-preview1" | |
| The app: | |
| - Rails 3.1rc4 app with some scaffolds. | |
| Results: | |
| Ruby: Rails environment load time: Full spec suite: Unit tests: | |
| 1.9.2 7.2 sec 34 sec 19 sec | |
| 1.9.3 4.5 sec 27 sec 11 sec |
Author
Author
Executing a spec through spork dropped from 800ms to 500ms :D
Author
Discovered that my tests where affected by the fact that I had this in my profile:
export RUBY_GC_MALLOC_LIMIT=40000000
It's slightly slower without it.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also tried it with a few non-rails projects, it's about 30-40% faster for everything so far.