Live data from Hacker News

Ruby 3.2’s YJIT is Production-Ready

shopify.engineering

301–304 of 304 posts

Re: Ruby 3.2’s YJIT is Production-Ready

#301
post #210
post #136

Earlier quoted context omitted.

I wonder if YJIT actually did decrease infrastructure costs for Shopify, seeing as it requires ~3x more memory. For my business, it’s come out about even. But a >30% decrease in response time is worth it, for me at least. I run many small servers (2 processes each), but IIRC, Shopify runs beefy servers. So may be different for them.

> as it requires ~3x more memory. Not sure were you've seen this, but that's absolutely not normal. The YJIT memory overhead is certainly sizeable, but is generally at least an order of magnitude smaller than that.

Reddit. Per this discussion here: https://old.reddit.com/r/ruby/comments/zzbrch/how_much_memor....

My production workload shows similar results. The YJIT app's memory sits at about 2.4x what my non-YJIT app utilizes. Sidekiq sits at 3x.

Re: Ruby 3.2’s YJIT is Production-Ready

#302
post #6

Does this work put Ruby into a faster category than Python until if/when Python gets a JIT in its official implementation?

If you believe the language benchmark game, Ruby is faster than Python on many of the microbenchmarks: https://benchmarksgame-team.pages.debian.net/benchmarksgame/... And the benchmark game is using Ruby 3.1, whereas 3.2 is significantly faster. YMMV though, it is going to depend on your use case, but we are always working on making Ruby faster, and if you run into a use case where Python is a lot faster, you can pin…

fyi now

ruby 3.2.0 +YJIT

Re: Ruby 3.2’s YJIT is Production-Ready

#303
post #67

Earlier quoted context omitted.

If you believe the language benchmark game, Ruby is faster than Python on many of the microbenchmarks: https://benchmarksgame-team.pages.debian.net/benchmarksgame/... And the benchmark game is using Ruby 3.1, whereas 3.2 is significantly faster. YMMV though, it is going to depend on your use case, but we are always working on making Ruby faster, and if you run into a use case where Python is a lot faster, you can pin…

Python 3.11 also claims [1] to be 10-60% faster than 3.10, which is the version that the benchmarks game is using at this time. The difference in used RSS is also quite interesting in this comparison. [1]: https://docs.python.org/3/whatsnew/3.11.html#whatsnew311-faster-cpython

fyi now

Python 3.11.1

Re: Ruby 3.2’s YJIT is Production-Ready

#304
post #6

Does this work put Ruby into a faster category than Python until if/when Python gets a JIT in its official implementation?

If you believe the language benchmark game, Ruby is faster than Python on many of the microbenchmarks: https://benchmarksgame-team.pages.debian.net/benchmarksgame/... And the benchmark game is using Ruby 3.1, whereas 3.2 is significantly faster. YMMV though, it is going to depend on your use case, but we are always working on making Ruby faster, and if you run into a use case where Python is a lot faster, you can pin…

If only someone would contribute programs that used Ractors.
Post reply on HN