Merged
Conversation
74e1bd7 to
78bb8b6
Compare
paracycle
reviewed
Sep 6, 2023
78bb8b6 to
a2bee28
Compare
nobu
reviewed
Sep 7, 2023
Contributor
I wouldn't expect
|
Contributor
|
This is pretty cool. Can you run it on rubykon, mail, nbody, optcarrot and lee to make sure there's no degradation? I expect it will perform well, but it would be nice to have a bit more benchmark data. |
Member
Author
Benoit thinks rewriting
Sure InterpreterYJITrubykon also seems to be sped up reliably. |
maximecb
approved these changes
Sep 7, 2023
eightbitraptor
added a commit
to eightbitraptor/ruby
that referenced
this pull request
Sep 15, 2023
This reverts commit 5b5ae3d.
eightbitraptor
added a commit
to eightbitraptor/ruby
that referenced
this pull request
Sep 15, 2023
This reverts commit 684cf0f3bcdbac32c3457fee7fcedc76e0cfa329.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
railsbench
I benchmarked this with railsbench, which does call
Integer#timesa little (ruby/ruby-bench#168).Interpreter
It doesn't seem to have a significant impact on the interpreter.
YJIT
It decreases
interp_return, increasesavg_len_in_yjit, and speeds up the benchmark a little.microbenchmark
Interpreter
It slows down the interpreter a little, but it doesn't seem too significant. In fact, railsbench did not slow down.
YJIT
Ruby outperforms C.