Benoit Daloze
eregon.me
Benoit Daloze
@eregon.me
Expert in dynamic language runtimes and JIT compilation, TruffleRuby lead, Rubyist.
https://eregon.me
New blog post: “Contributions to ruby/spec”
eregon.me/blog/2025/05...
May 3, 2025 at 7:15 PM
New blog post: “Matching Regexps 200 Times Faster”
eregon.me/blog/2025/03...
March 14, 2025 at 9:17 PM
Did you run with YJIT? YJIT doesn't compile singleton methods of non-Module/Class objects.

I was also surprised by the extra method call costing something like 10-20ns extra without YJIT (10 from the blog post, 20 from my local run on 3.4.1).

Meanwhile on TruffleRuby all 3 optimize away:
February 13, 2025 at 8:35 PM
December 11, 2024 at 6:54 PM