the benchmark.rb files test the speed of #each_with_object versus other ways of achieving the same results.
the different approaches are defined in files in the lib folder.
the accompanying blog can be accessed here:
Benchmarking #each_with_object vs #each, #inject, and #map. Blog at: https://medium.com/@cmorinan/how-to-u…
Ruby
the benchmark.rb files test the speed of #each_with_object versus other ways of achieving the same results.
the different approaches are defined in files in the lib folder.
the accompanying blog can be accessed here: