TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ruby 3.3's YJIT Runs Shopify's Production Code 15% Faster

175 pointsby nithinbekalover 1 year ago

9 comments

shoover 1 year ago
<p><pre><code> &gt; 1.27 million requests per second &gt; 3TB&#x2F;minute of traffic </code></pre> &quot;rails doesn&#x27;t scale&quot;
评论 #37580203 未加载
评论 #37580617 未加载
评论 #37580199 未加载
评论 #37580170 未加载
评论 #37580330 未加载
评论 #37585881 未加载
评论 #37580188 未加载
评论 #37580179 未加载
评论 #37581451 未加载
wgjordanover 1 year ago
15% faster is great. But at what cost?<p>&gt; Since Ruby 3.3.0-preview2 YJIT generates more code than Ruby 3.2.2 YJIT, this can result in YJIT having a higher memory overlead. We put a lot of effort into making metadata more space-efficient, but it still uses more memory than Ruby 3.2.2 YJIT.<p>I&#x27;m hoping&#x2F;assuming the increased memory usage is trivial compared to the cpu-efficiency gains, but it would be nice to see some memory-overhead numbers as part of this analysis.
评论 #37580177 未加载
rapseyover 1 year ago
Time spent profiling and optimizing inherently inefficient technologies is an undervalued factor when deciding what stack to use.
评论 #37580722 未加载
评论 #37580818 未加载
alberthover 1 year ago
TruffleRuby<p>What&#x27;s the current state of Shopify running TruffleRuby, given the tragic loss of Chris Seaton?
评论 #37581486 未加载
评论 #37585612 未加载
okeuro49over 1 year ago
PHP went through some crazy performance improvements from PHP 5.6 to 7.0, in some cases running twice as fast.<p>It&#x27;s good to see Ruby doing the same. There is something neat about the same code running faster, solely by being on an upgraded platform.
评论 #37582858 未加载
DylanSpover 1 year ago
I&#x27;m probably misinterpreting the numbers, but it sounds like the 3.3 interpreter also got some significant performance improvements - if 3.3 YJIT got a 13% speedup compared to 3.2 YJIT and a 15% speedup compared to 3.3 interpreter, that sounds like the 3.2 YJIT has only slightly better performance than the 3.3 interpreter. Is that interpretation correct? If so, what were the improvements in the 3.3 interpreter, or was 3.2 YJIT just not much of a speedup?
评论 #37585704 未加载
评论 #37596623 未加载
stevebmarkover 1 year ago
Not to be pessimistic, but does this matter? Rails apps take 2-3x more resources to run than most other language stacks, including other dynamic languages, (including Perl!).
bkazezover 1 year ago
15% faster - and how much faster would Java, Rust, or Python be?
评论 #37582291 未加载
rurbanover 1 year ago
Next should be github then, I hope