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