News for hackers. Stuff that matters.
Re:Ruby 3.3 by ajmurmann on Monday December 25, 2023 @12:53PM (#38764548)
How much of the time in a given request is even spent in Ruby code? The majority of web apps that were slow and I got a chance to analyze were spending much of the time in DB queries and slowness was usually due to unoptimized DB queries. Even endpoints that were fast, still spent a large percentage of their time not in Ruby but in DB and service requests
Re:Ruby 3.3 by pdimitar on Monday December 25, 2023 @01:09PM (#38764692)
That is true, yes, but still comparing e.g. Rust vs. Ruby I'd think Rust spends anywhere from 10ns to 100ns (outside of waiting on DB) and Ruby no less than 10 ms. Still pretty significant and can add up during times of big load.

Also I remember Rails' ActiveRecord having some pretty egregious performance footprint (we're talking 10ms to 100ms on top of DB waiting) but I hear that was fixed a while ago.

Re:Ruby 3.3 by ajmurmann on Monday December 25, 2023 @02:44PM (#38765483)
My point was that if we look at Rails performance going up 10%, what does that mean for time spent in Ruby. I'd believe anything from a 15% to a 80% reduction of time spent in Ruby code
Re:Ruby 3.3 by pdimitar on Tuesday December 26, 2023 @05:27AM (#38770491)
I haven't seen 80% anywhere in the linked article[0] so let's use facts and not beliefs.

It is possible Ruby itself got accelerated a lot, okay, I am just not sure that's relevant since almost all Ruby usage is Rails.

[0] https://railsatscale.com/2023-09-18-ruby-3-3-s-yjit-runs-sho...

Re:Ruby 3.3 by ajmurmann on Tuesday December 26, 2023 @11:34AM (#38773225)
I wasn't trying to say that Ruby indeed is 80% faster, but that it's pretty much impossible to drive actual Ruby speed up from Rails numbers, since we don't know nearly enough about the Rails app