$ rbenv install 2.5.0
$ rvm install 2.5.0
About 5-10% performance improvement by removing all trace instructions from overall bytecode
Block passing by a block parameter (e.g. def foo(&b); bar(&b); end) is about 3 times faster than Ruby 2.4 by “Lazy Proc allocation”
Mutex is rewritten to be smaller and faster
ERB now generates code from a template twice as fast
Improve performance of some built-in methods
IO.copy_stream uses copy_file_range(2) to copy offload
Oldest call first, most recent call last.
Note: the order is reversed only when the backtrace is printed out to the terminal directly.
rescue/else/ensure are now allowed to be used directly with do/end blocks
$ rbenv install 2.6.0-rc2
How to use: Just specify --jit in command line or $RUBYOPT environment variable
Ruby 3x3: Matz, Koichi, and Tenderlove on the future of Ruby Performance