mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
9dd64f2e0c
BTW, select works quite faster then find_all: require 'benchmark' n = [1]*100_000_000 Benchmark.bm do |x| x.report { n.select { |a| a > 1 } } x.report { n.find_all { |a| a > 1 } } end user system total real 7.590000 0.010000 7.600000 ( 7.927171) 9.650000 0.010000 9.660000 ( 9.634406) |
||
---|---|---|
.. | ||
helpers | ||
locale | ||
renderer | ||
template | ||
testing | ||
asset_paths.rb | ||
base.rb | ||
buffers.rb | ||
context.rb | ||
flows.rb | ||
helpers.rb | ||
log_subscriber.rb | ||
lookup_context.rb | ||
path_set.rb | ||
railtie.rb | ||
template.rb | ||
test_case.rb |