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



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





Software engineer at Treasure Data.

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

Recommended from Medium

Live streaming via UDP socket in python / multithreading

Deploying to On-Prem Server with using Azure DevOps — Pipelines

The VIBE Ecosystem

Telegram set up new video calling feature in beta version

Hush — A new Android application

Hosting a static website on Github.

Quickly Calculate Percentage — Chrome Extension for Stock Purchases

A Beginners Guide to Docker

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


Software engineer at Treasure Data.

More from Medium

Rails Today

Seeding Data with Faker in Ruby

The logo for the Faker library

“Hello, World” in Ruby

Rails has many through