Skip to content

Instantly share code, notes, and snippets.

@joakimk
Created Jul 31, 2011
Embed
What would you like to do?
Some simple ruby 1.9.3 benchmarks
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
@joakimk

This comment has been minimized.

Copy link
Owner Author

@joakimk joakimk commented Jul 31, 2011

Also tried it with a few non-rails projects, it's about 30-40% faster for everything so far.

@joakimk

This comment has been minimized.

Copy link
Owner Author

@joakimk joakimk commented Aug 1, 2011

Executing a spec through spork dropped from 800ms to 500ms :D

@joakimk

This comment has been minimized.

Copy link
Owner Author

@joakimk joakimk commented Aug 4, 2011

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