Skip to content

Conversation

tekknolagi
Copy link
Contributor

No description provided.

@tekknolagi tekknolagi marked this pull request as ready for review October 17, 2025 19:35
@tekknolagi tekknolagi requested a review from a team October 17, 2025 19:36
@tekknolagi tekknolagi changed the title Add microbenchmarks for send with block Add microbenchmarks for more kinds of sends Oct 20, 2025
@tekknolagi tekknolagi enabled auto-merge (squash) October 20, 2025 14:03
Copy link
Contributor

@tenderworks tenderworks left a comment

Choose a reason for hiding this comment

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

Just left a question about loops. Otherwise this PR looks good to me.

run_benchmark(500) do
2_000_000.times do |i|
zero
one 123
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we manually unroll this loop somewhat? I'm kind of concerned this benchmark will spend a significant amount of time dealing with the block entry (for the times method) rather than exercising the define_method method calls.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, that's reasonable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tekknolagi tekknolagi merged commit 0921a9e into main Oct 20, 2025
3 checks passed
@tekknolagi tekknolagi deleted the mb-send-microbenchmarks branch October 20, 2025 14:15
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.

3 participants