diff options
Diffstat (limited to 'benchmark/enum_lazy_uniq_100.rb')
-rw-r--r-- | benchmark/enum_lazy_uniq_100.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/benchmark/enum_lazy_uniq_100.rb b/benchmark/enum_lazy_uniq_100.rb new file mode 100644 index 0000000000..2e6434d9c4 --- /dev/null +++ b/benchmark/enum_lazy_uniq_100.rb @@ -0,0 +1,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 {}} |