The team behind Ruby has been working to improve memory usage during compilation. Matz’s hope was that Ruby 3.0 would be 3x faster than Ruby 2.0. Whether or not that was accomplished is a little hard to objectively measure, but many cumulative improvements were made throughout the various minor versions of 2.0. If starkly comparing 3.0 to 2.0, Ruby is, yes, nearly 3x faster. A lot of that is thanks to the Just-In-Time compiler, and its refined relative, the MJIT compiler.

Medium