summaryrefslogtreecommitdiff
path: root/benchmark/enum_lazy_uniq_50.rb
blob: 59a39b78ff26834db7cbf2f958c8fa5665985825 (plain)
1
2
3
4
uniq_data = (1..10_000).to_a
N = 100
enum = uniq_data.lazy.uniq {|i| i % 5000}.uniq {|i| i % 5000}
N.times {enum.each {}}