aboutsummaryrefslogtreecommitdiffstats
path: root/benchmark/enum_lazy_grep_v_20.rb
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/enum_lazy_grep_v_20.rb')
-rw-r--r--benchmark/enum_lazy_grep_v_20.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/benchmark/enum_lazy_grep_v_20.rb b/benchmark/enum_lazy_grep_v_20.rb
new file mode 100644
index 0000000000..329509fa8f
--- /dev/null
+++ b/benchmark/enum_lazy_grep_v_20.rb
@@ -0,0 +1,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 {}}