Benoit Daloze
eregon.bsky.social
Benoit Daloze
@eregon.bsky.social
Rubyist, Researcher at Oracle Labs, part of the @GraalVM team, TruffleRuby lead. Expressed opinions are my own.
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