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