Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
5x performance degredation from rbx 2.5.8 to rbx 3.69 #3718
The script that switches these is available as well: https://github.com/PragTob/rubykon/blob/master/benchmark/benchmark.sh
I expected rbx 3.69 to be about as fast as 2.5.8 or faster.
I observed that it got about 5 times slower. You can see results in this gist.
As I said 3.69 (was most up to date when I installed last week) and 2.5.8
My distribution is Linux Mint 18 (based on Ubuntu 16.04)
Why did I run all this? I wanted to make a redo of my benchmarks of ruby implementations from last year seeing how the implementations improved in the last year :)
@PragTob the just-in-time compiler (JIT) has been removed to make way for a new interpreter and JIT infrastructure. That is the reason you're seeing the performance degradation (and illustrates how important JIT is to making Ruby fast). The JIT was removed because it had a number of bugs and was too complicated, resulting in almost no contributors making improvements.
If you're interested in helping with the new interpreter and JIT, I can point you to some tasks to get started.