-
Notifications
You must be signed in to change notification settings - Fork 22
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
Enable protoboeuf-encode benchmark on TruffleRuby #332
base: main
Are you sure you want to change the base?
Enable protoboeuf-encode benchmark on TruffleRuby #332
Conversation
Is
|
TBH we want to test yjit-bench here instead of the TruffleRuby project. Given how unstable this job has been so far and the fact that it has been mostly due to TruffleRuby's bugs, I think this job should live in If our interest is not to test the edge TruffleRuby but make sure yjit-bench works with TruffleRuby, we should run a released stable version of TruffleRuby instead of the HEAD TruffleRuby. yjit-bench's CI shouldn't randomly fail when nothing has been changed in yjit-bench. |
Yeah, looks like a build for the fix isn't ready yet (the fix was merged today). Will retry jobs tomorrow. |
FWIW that's easily visible at https://github.com/ruby/truffleruby-dev-builder which shows which commit the latest build used. |
In this case at least it was not a bug, protoboeuf is using a method from Ruby 3.3, so that was not available yet on other Ruby implementations. For most gems out there they would support older Ruby versions and so it's quite a special case.
The only case I recall is #262, were there many others? I also think it is important to test another Ruby than just CRuby, otherwise the harness is likely to become accidentally CRuby-specific.
That's fair, we should try switching to a release of TruffleRuby. |
You should have no problem handling that generated code. It's not CRuby-specific. |
It executes correctly, it's just that
Anyway, I shouldn't have mentioned that here, it's pretty much orthogonal. |
It had three benchmarks. yjit-bench used to stop at a single benchmark failure, so it was three round-trips, which were already too many for me. We have two others failing right now that happened separately, so five cases in total.
👍 |
I think you mean too big for your method JIT. Google's V8 handles this sort of thing just fine 😉 |
Actually it compiles fine, my bad, probably because it's a lot of very simple arithmetic, and the benchmark likely uses only a small portion of the many branches: In the source code it certainly looks like a lot of duplication and something the JIT should be able to decide whether to inline or not (which it could if it's a separate method). I'll make a PR to switch to a release of TruffleRuby in CI: #334 |
e0bbac8
to
ee8e5b5
Compare
The benchmark was disabled in #325. Now the issue is fixed (in oracle/truffleruby#3674).