-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance of rspec on the mastodon test suite is very slow compared to MRI #2789
Comments
Retrying with graalvm, I can't install head (but that's a ruby-build issue rbenv/ruby-build#2092), and using the JVM flag update: I cant get specs to run with ruby truffleruby+graalvm-22.3.0, seeing this error:
|
Thank you for the report. truffleruby-head/truffleruby+graalvm-head is needed at least for the 3877eeb fix and it should also avoid that segfault you see on 22.3.0 (see #2801). It's expected for an optimizing JIT to run tests slower than in interpreter without JIT like CRuby due to profiling overheads, etc. Do you have numbers for maybe a subset of the test suite? |
See mastodon/mastodon@4e4b72a#r90590935 regarding the |
@eregon yeah in my brach I removed all the GC calls. I'll try again with truffleruby-head/truffleruby+graalvm-head |
The segfault on 22.3 is very likely the same as #2801 so yeah fixed on I've run the tests with:
and then I tried (modified from the printed command line)
The profile shows:
So a lot of time spent sleeping, which seems weird. |
Hello,
I'm trying to get mastodon to run in truffleruby, however one thing I have noticed is the specs run orders of magnitude slower thanunder MRI.
I'm using this branch: https://github.com/matthewford/mastodon/tree/truffle-ruby
Diff: mastodon/mastodon@main...matthewford:mastodon:truffle-ruby
The text was updated successfully, but these errors were encountered: