fastruby / fast-ruby

:dash: Writing Fast Ruby :heart_eyes: -- Collect Common Ruby idioms.
https://github.com/fastruby/fast-ruby
5.67k stars 376 forks source link

Update `Proc#call` and block arguments vs `yield` for Ruby 2.5 and 2.6 #163

Closed bdewater closed 5 years ago

bdewater commented 6 years ago

In Ruby 2.5, passing through a block argument has become a lot faster.

I renamed the 'block argument' benchmark because I felt the old name was misleading as the fastest on Ruby 2.5.

bdewater commented 5 years ago

I've updated the PR to include Ruby 2.6.

Arcovion commented 5 years ago

Thanks!