Sha256: c4faa09e3be48a924d60ba4b64923eaeaae85e589d79ac3d01d961234e680bea

Contents?: true

Size: 367 Bytes

Versions: 175

Compression:

Stored size: 367 Bytes

Contents

require 'rubygems'
require 'tach'

Tach.meter(1_000_000) do
  tach('concat') do
    path = 'path'
    path = '/' << path
  end
  tach('insert') do
    path = 'path'
    path.insert(0, '/')
  end
end

# +--------+----------+
# | tach   | total    |
# +--------+----------+
# | insert | 0.974036 |
# +--------+----------+
# | concat | 0.998904 |
# +--------+----------+

Version data entries

175 entries across 173 versions & 6 rubygems

Version Path
excon-0.41.0 benchmarks/concat_vs_insert.rb
excon-0.40.0 benchmarks/concat_vs_insert.rb
excon-0.39.6 benchmarks/concat_vs_insert.rb
excon-0.39.5 benchmarks/concat_vs_insert.rb
excon-0.39.4 benchmarks/concat_vs_insert.rb
excon-0.39.3 benchmarks/concat_vs_insert.rb
excon-0.39.2 benchmarks/concat_vs_insert.rb
excon-0.39.1 benchmarks/concat_vs_insert.rb
excon-0.39.0 benchmarks/concat_vs_insert.rb
excon-0.38.0 benchmarks/concat_vs_insert.rb
excon-0.37.0 benchmarks/concat_vs_insert.rb
excon-0.36.0 benchmarks/concat_vs_insert.rb
excon-0.35.0 benchmarks/concat_vs_insert.rb
excon-0.34.0 benchmarks/concat_vs_insert.rb
excon-0.33.0 benchmarks/concat_vs_insert.rb
excon-0.32.1 benchmarks/concat_vs_insert.rb
excon-0.32.0 benchmarks/concat_vs_insert.rb
excon-0.31.0 benchmarks/concat_vs_insert.rb
excon-0.30.0 benchmarks/concat_vs_insert.rb
excon-0.29.0 benchmarks/concat_vs_insert.rb