Skip to content

On hexapdf benchmark, speed destabilizes and memory usage grows over time #3130

Open
@XrXr

Description

@XrXr

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.

speed and memory over consumption time

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

Screenshot 2023-06-23 at 9 49 32 PM

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions