Patching Ruby 1.9.3 for Faster Rails Tests

I admit it, I haven’t fully gotten around to stubbing out all Rails classes in my tests. So, while I was writing tests for some older code, I decided to patch Ruby 1.9.3 to see how much I could gain just from that (I also modified a few env variables).

Results below:

13.907secs – 4.733secs = 400+% speed-up!

Not bad for 10mins of install time!

Note: I just added the env variables in my .rvmrc so they’re not loaded anytime I open the shell.