summaryrefslogtreecommitdiff
path: root/benchmark/enum_lazy_grep_v_20.rb
blob: 329509fa8f073d0b2cb4ec9f017cc9480c4307b0 (plain)
1
2
3
4
grep_data = (1..10).to_a * 1000
N = 100
enum = grep_data.lazy.grep_v(->(i){i > 2}).grep_v(->(i){i > 2})
N.times {enum.each {}}