Recently, we’ve been porting one of our projects from Ruby 1.9.3 (MRI) to JRuby 1.7.3. There was a fair amount of work involved, mainly about Ruby gems and (in)compatibility with C extensions (which JRuby dropped support), but that will be left for another post. Here, I’d like to discuss the recent addition of JRuby support to the parallel_tests gem.
Our tests take about 20 minutes to run (it’s suite of ~3800 examples, which are currently undergoing refactoring to improve performance), but a lot of the machine’s processing power is unused. So I thought we could start by actually running all the code we can, before starting to profile and tune it. Also, if the delays were caused by waiting events, it wouldn’t help making the code run faster. This sounds good, but it didn’t turn out to be that easy.
7 May 2013