Skip to content

Conversation

@rwstauner
Copy link
Contributor

The repo is a gem so we can just use it from our Gemfile.
The rom is included.
The current loop produces results similar to our optcarrot benchmark.

cruby: ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [arm64-darwin23]
yjit: ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +YJIT +PRISM [arm64-darwin23]

---------  ----------  ----------  ---------  ----------  ------------  ----------
bench      cruby (ms)  stddev (%)  yjit (ms)  stddev (%)  yjit 1st itr  cruby/yjit
optcarrot  3100.0      0.6         800.8      1.7         3.599         3.871
rubyboy    2764.1      0.5         991.9      1.0         2.606         2.787
---------  ----------  ----------  ---------  ----------  ------------  ----------
Legend:
- yjit 1st itr: ratio of cruby/yjit time for the first benchmarking iteration.
- cruby/yjit: ratio of cruby/yjit time. Higher is better for yjit. Above 1 represents a speedup.

The repo is a gem so we can just use it from our Gemfile.
The rom is included.
The current loop produces results similar to our optcarrot benchmark.

cruby: ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [arm64-darwin23]
yjit: ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +YJIT +PRISM [arm64-darwin23]

---------  ----------  ----------  ---------  ----------  ------------  ----------
bench      cruby (ms)  stddev (%)  yjit (ms)  stddev (%)  yjit 1st itr  cruby/yjit
optcarrot  3100.0      0.6         800.8      1.7         3.599         3.871
rubyboy    2764.1      0.5         991.9      1.0         2.606         2.787
---------  ----------  ----------  ---------  ----------  ------------  ----------
Legend:
- yjit 1st itr: ratio of cruby/yjit time for the first benchmarking iteration.
- cruby/yjit: ratio of cruby/yjit time. Higher is better for yjit. Above 1 represents a speedup.
Copy link
Contributor

@maximecb maximecb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! Thank you Randy! :)

@maximecb maximecb merged commit 2edf4cf into main Feb 11, 2025
4 checks passed
@maximecb maximecb deleted the rwstauner/rubyboy branch February 11, 2025 19:50
@maximecb
Copy link
Contributor

@sacckey we added the rubyboy benchmark to yjit-bench :)

@sacckey
Copy link

sacckey commented Feb 12, 2025

Thank you! I'm really happy Ruby Boy is being used in the yjit benchmarks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants