fast-ruby icon indicating copy to clipboard operation
fast-ruby copied to clipboard

:dash: Writing Fast Ruby :heart_eyes: -- Collect Common Ruby idioms.

Results 80 fast-ruby issues
Sort by recently updated
recently updated
newest added

#203 moved the benchmarks from Travis CI to GitHub Actions CI. It also started sharing results to https://ips.fastruby.io (which is an instance of [benchmark.fyi](https://github.com/fastruby/benchmark.fyi)) for every commit to a PR...

Currently, the results are in the README file, but all numbers are from one specific ruby version. Trying to add information for more rubies can make the README a mess...

The [code/hash/merge-bang-vs-[]=.rb](https://github.com/JuanitoFatas/fast-ruby/blob/38f49f95fc7574d929de60b71791d09129c2588c/code/hash/merge-bang-vs-%5B%5D=.rb) benchmark merges N 1-element hashes to compare it with N hash element assignments using `[]=`. Obviously assignments are faster, but this is not a real-life scenario. The more...

When selecting a data structure to store a set of unique elements, in which a common operation will be to check if an element is part of that data structure,...

I would like to contribute. I hope I didn’t necro-“thread”! I might have more commits/PRs coming up.

As Ruby 2.6 added support for executing a block when passed to `to_h` I think we can add it with the other implementations to achieve the same output. Ruby on...

Add benchmarks to understand when to define method explicitly, forward method with `def_delegator` or use `SimpleDelegator`.