The code/hash/merge-bang-vs-[]=.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 common case would be to perform one merge an N-element hash and it appears it is much faster to do it than to perform N assignments. This PR implements such a benchmark.
The code/hash/merge-bang-vs-[]=.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 common case would be to perform one merge an N-element hash and it appears it is much faster to do it than to perform N assignments. This PR implements such a benchmark.