r/ruby • • Dec 15 '25

Ruby 4.0 Allocation speed up

Aaron just posted this benchmarks on Bluesky. Apparently object allocations are much faster in Ruby 4.0.

Can anyone explain what new optimizations are taking place here to allow this speed up?

135 Upvotes

12 comments sorted by

View all comments

21

u/swrobel Dec 15 '25

Looking to be another merry Christmas for us!