Is Ruby 3 faster?
Ruby 3 is indeed faster compared to its predecessor, Ruby 2. The main goal of Ruby 3 was to make it three times faster than Ruby 2, known as Ruby 3x3. This performance enhancement was achieved through various optimizations, including CPU and memory optimizations, an enhanced garbage collector, and the introduction of features like Fibers and Fiber Scheduler for better concurrency. The introduction of YJIT (Just-In-Time compiler) in Ruby 3.3 further improved performance, with reports indicating a 13% to 15% speed increase compared to previous versions.