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.64.0 benchmarks/concat_vs_insert.rb
excon-0.63.0 benchmarks/concat_vs_insert.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/excon-0.62.0/benchmarks/concat_vs_insert.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/excon-0.62.0/benchmarks/concat_vs_insert.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/excon-0.62.0/benchmarks/concat_vs_insert.rb
excon-0.62.0 benchmarks/concat_vs_insert.rb
excon-0.61.0 benchmarks/concat_vs_insert.rb
excon-0.60.0 benchmarks/concat_vs_insert.rb
excon-0.59.0 benchmarks/concat_vs_insert.rb
excon-0.58.0 benchmarks/concat_vs_insert.rb
excon-0.57.1 benchmarks/concat_vs_insert.rb
excon-0.57.0 benchmarks/concat_vs_insert.rb
excon-0.56.0 benchmarks/concat_vs_insert.rb
excon-0.55.0 benchmarks/concat_vs_insert.rb
excon-0.54.0 benchmarks/concat_vs_insert.rb
excon-0.53.0 benchmarks/concat_vs_insert.rb
excon-0.52.0 benchmarks/concat_vs_insert.rb
excon-0.51.0 benchmarks/concat_vs_insert.rb
excon-0.50.1 benchmarks/concat_vs_insert.rb
excon-0.50.0 benchmarks/concat_vs_insert.rb