repo.or.cz
/
ruby.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
[rubygems/rubygems] Use a constant empty tar header to avoid extra allocations
[ruby.git]
/
benchmark
/
enum_lazy_grep_v_20.rb
blob
329509fa8f073d0b2cb4ec9f017cc9480c4307b0
1
grep_data = (1..10).to_a * 1000
2
N = 100
3
enum = grep_data.lazy.grep_v(->(i){i > 2}).grep_v(->(i){i > 2})
4
N.times {enum.each {}}