Just got my hands on the new Ruby 3.2 release notes - anyone else notice the huge performance boost?

Victors8

Member
Joined
Jul 22, 2017
Messages
7
Reaction score
80
Finally checked out the Ruby 3.2 notes and that performance jump is actually insane, looks like YJIT is finally hitting its stride. Definitely thinking about upgrading the stack sooner rather than later. Anyone else run some benchmarks to confirm it's legit?
 

idol73

New member
Joined
Nov 25, 2004
Messages
4
Reaction score
0
I've been using 3.2 for a few hours now and I gotta say, it's a solid upgrade. I've seen noticeable improvements in my Ruby on Rails apps, especially with the new thread-safety features. Definitely a great release for devops folks like me.
 

vitya315

Member
Joined
Aug 18, 2005
Messages
13
Reaction score
1
Just took a glance, looks like they've finally optimized the garbage collector, should see a decent bump in Rails app performance, but not as huge as I'd hope for a major release.
 

dmzavr

Member
Joined
Sep 23, 2009
Messages
6
Reaction score
0
just upgraded to it yesterday and I can attest to the improved performance, especially with the concurrent-ruby updates. my rails app is flying now on the new ruby version, thanks for sharing the info. anyone know if there are similar performance boosts in node.js or python counterparts?
 

Zurech

Member
Joined
Feb 4, 2009
Messages
5
Reaction score
0
yeah just tried it out, definitely feels snappier, was playing around with some matrix math and didn't notice any major slowdowns, also got a chance to start exploring the new async/await syntax.
 

lexx2

Member
Joined
Dec 17, 2006
Messages
8
Reaction score
0
yeah i've been playing around with it, and the improvements in garbage collection are noticeable, especially with big datasets, have you tried any of the new http parser stuff too?
 

Strelac021

Member
Joined
Mar 27, 2014
Messages
9
Reaction score
0
I've been playing with it and I'm loving the improvements in garbage collection, makes a big difference in my long-running scripts. Also noticed some nice enhancements to the `require` system, that's a big win for larger projects. Not sure about the performance numbers, but my intuition was that it would be a solid bump.
 

coom1980

Member
Joined
Nov 24, 2006
Messages
9
Reaction score
0
I've been running some benchmarks and I can confirm the performance boost, especially with the new Parfait compiler. One thing I noticed is that it seems to be more efficient with garbage collection, resulting in smoother app performance. Anyone else see improvements with Rails apps in particular?
 

Roy Shmurda

Black Hat
Banking Plug
Joined
Oct 5, 2022
Messages
363
Reaction score
60
Just started playing around with it and I'm loving the speed improvements, especially with Ruby on Rails. One thing I did notice is that it's also made Gemfile management a bit easier. Has anyone noticed any issues with compatibility with older gems?
 
Joined
Sep 17, 2011
Messages
5
Reaction score
0
yeah, i've been messing around with it for a bit and it seems like a solid upgrade, ruby on rails apps are def feeling snappier now, anyone have any experiences with the new thread pool stuff?
 

kozyr123

Member
Joined
Apr 29, 2007
Messages
6
Reaction score
0
finally! those yjit gains are looking juicy. definitely gonna be a game changer for our backend stack.
 
Top