Ruby 3 JIT can make Rails faster

RubyKaig 2018 / The Method JIT Compiler for Ruby 2.6

"MJIT Does Not Improve Rails Performance"

Why does Rails become slower on Ruby 3’s JIT?

Is it because we use C compilers?

i-cache misses by compiling many methods?

The “compile all” magic

Sinatra Benchmark

Rails Simpler Bench

Railsbench

Discourse

Why does compiling everything make it faster?

So, should I use JIT on Rails?

Ruby 3.0.1 bug that's not in 3.0.0

Ruby 3 bug that stops compilation in the middle

Incompatibility with Zeitwerk / TracePoint

Incompatibility with GC.compact

The default value of --jit-max-cache

Scalability of "JIT compaction"

Next steps

Ruby-based JIT compiler

Faster deoptimization

Lazy stack frame push

Sponsors

https://github.com/sponsors/k0kubun

--

--

--

Software engineer at Treasure Data. https://twitter.com/k0kubun https://github.com/k0kubun https://speakerdeck.com/k0kubun

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How To Install the Apache with Tomcat Web Server on Centos 7

Build Data Analytics platform using Azure Databricks

Node.js Vs JAVA Vs Python- How to Choose the Best Backend Tech Stack?

Don’t go chasin’ waterfall (development)

Fibonacci Numbers

Slinging Drinks to Learning Code: Why I Decided to Become a Software Engineer

Benefits and Features of MongoDB for blockchain development

Implementing CountVectorizer from Scratch in Python Exclusive

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
k0kubun

k0kubun

Software engineer at Treasure Data. https://twitter.com/k0kubun https://github.com/k0kubun https://speakerdeck.com/k0kubun

More from Medium

Ruby on Rails: Still on Track in 2022?

Ruby and Ruby on Rails

Is Ruby On Rails Worth Learning Today?

Ruby: ORM & ActiveRecord