Ruby Benchmarking CRuby, MJIT, YJIT, JRuby and TruffleRuby

lidashuang · May 19, 2022 · Last by yukihiro_matz replied at May 25, 2022 · 572 hits

https://eregon.me/blog/2022/01/06/benchmarking-cruby-mjit-yjit-jruby-truffleruby.html

在这篇博客文章中,我们对许多 Ruby 版本和最新的 Ruby 即时编译器 (JIT) 在最新的 Ruby 基准测试套件 yjit-be 上进行了基准测试。在这 14 个基准测试中,与 CRuby 3.1 相比,几何平均加速比分别是:MJIT 1.26 倍、YJIT 1.39 倍、JRuby 1.86 倍和 TruffleRuby 6.23 倍

TruffleRuby 提升明显

 ~/ rbenv install truffleruby-22.0.0.2 
Unsupported platform: Darwin-arm64
BUILD FAILED (macOS 12.3.1 using ruby-build 20220218-2-g10a56a2)

truffleruby 不支持 M1

TruffleRuby? 呵呵

这也提升太多了

You need to Sign in before reply, if you don't have an account, please Sign up first.