diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-16 00:58:21 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-16 00:58:21 +0000 |
commit | 7d6a26f2a1e19d248dcf6defcfdcf8ab1c821e0d (patch) | |
tree | 8a21240e489024ff3f99362ab01b80ef832a490e /benchmark/enum_lazy_grep_v_20.rb | |
parent | 2c195f64cf14095e7b70adcfdf56c7bb285b5a06 (diff) |
Adding Enumerator::Lazy#uniq and Enumerator::Lazy#grep_v to proc chaining
[Feature #14994]
[Fix GH-1930]
From: Anmol Chopra <[email protected]>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark/enum_lazy_grep_v_20.rb')
-rw-r--r-- | benchmark/enum_lazy_grep_v_20.rb | 4 |
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 {}} |