YJIT: A Basic Block Versioning JIT Compiler for CRubyWIP Paper
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.
Tue 19 OctDisplayed time zone: Central Time (US & Canada) change
13:50 - 15:10 | |||
13:50 60mKeynote | Cross-Domain Compilation: Exploiting Synergies Across the CS CommunityKeynote VMIL Tobias Grosser University of Edinburgh | ||
14:50 20mTalk | YJIT: A Basic Block Versioning JIT Compiler for CRubyWIP Paper VMIL Maxime Chevalier-Boisvert Shopify, Noah Gibbs Shopify, Jean Boussier Shopify, Si Xing "Alan" Wu Shopify, Aaron Patterson Shopify, Kevin Newton Shopify, John Hawthorn GitHub |