Description
On a benchmark we have using hexapdf
, TruffleRuby seems to have speed
that becomes more and more variable the longer one lets the benchmark run.
Also, memory usage seems to grow over time, though I don't know if it stops growing at some point.
In any case, I'm filing this as it seems like a performance bug.
Version: truffleruby 23.0.0, like ruby 3.1.3, Oracle GraalVM Native [x86_64-linux]
Benchmark in question: https://github.com/Shopify/yjit-bench/tree/tr-hexpdf-problem
SHA at the time of bug submission: Shopify/yjit-bench@c663283
To run, make sure ruby
is TruffleRuby and do $ ruby run_benchmarks.rb --harness=rss hexapdf
. It runs for 5 minutes but you can tweak the code if desired. The gap between fastest and slowest iteration time seems to grow the longer the benchmark runs.

For reference, here is the same graph from running the benchmark using CRuby (interpreter only)
