YJIT: a basic block versioning JIT compiler for CRuby
YJIT: a basic block versioning JIT compiler for CRuby
复制标题
YJIT:CRuby 的基本块版本控制 JIT 编译器
DOI:
--
复制
发表时间:
2021
期刊:
影响因子:
--
通讯作者:
J. Hawthorn
中科院分区:
文献类型:
--
作者:
Maxime Chevalier;Noah Gibbs;J. Boussier;Si Xing Wu;Aaron Patterson;Kevin Newton;J. Hawthorn
Ruby is a dynamically typed programming language with a large breadth of features which has grown in popularity with the rise of the modern web, and remains at the core of the implementation of many widely-used websites. CRuby, the default implementation of the language, features a JIT compiler known as MJIT, but developers often do not enable it in production environments, because it does not always yield performance improvements on real-world software. Attempts to independently reimplement the Ruby language, such as JRuby and TruffleRuby have shown impressive performance results on benchmarks, but often lag behind CRuby when it comes to supporting new additions to the language, which limits their adoption. We introduce YJIT, a new JIT compiler built inside CRuby based on a Lazy Basic Block Versioning (LBBV) architecture. We show that while our compiler does not match the peak performance of TruffleRuby, it offers near-100% compatibility with existing Ruby code, impressively fast warmup, and speedups from 15% to 19% on sizeable benchmarks based on real-world software.