Adding a function that can be benchmarked.
benchmarking collapse-group (reduce) operation versus the map+sort+group operation.
benchmarking read_lines