Use map instead of side-effecting each for Ruby benchmarks