Sha256: 7e6d342102727edada7091b6973ad10277002005758b4fbaeb3d141028e4bc27

Contents?: true

Size: 416 Bytes

Versions: 158

Compression:

Stored size: 416 Bytes

Contents

require 'rubygems'
require 'tach'

key = 'Content-Length'
value = '100'
Tach.meter(1_000) do
  tach('concat') do
    key << ': ' << value << "\r\n"
  end
  tach('interpolate') do
    "#{key}: value\r\n"
  end
end

# +-------------+----------+
# | tach        | total    |
# +-------------+----------+
# | concat      | 0.000902 |
# +-------------+----------+
# | interpolate | 0.019667 |
# +-------------+----------+

Version data entries

158 entries across 158 versions & 5 rubygems

Version Path
vagrant-shell-0.2.6 vendor/bundle/gems/excon-0.20.1/benchmarks/concat_vs_interpolate.rb
vagrant-shell-0.2.5 vendor/bundle/gems/excon-0.20.1/benchmarks/concat_vs_interpolate.rb
excon-0.21.0 benchmarks/concat_vs_interpolate.rb
excon-0.20.1 benchmarks/concat_vs_interpolate.rb
excon-0.20.0 benchmarks/concat_vs_interpolate.rb
excon-0.19.5 benchmarks/concat_vs_interpolate.rb
excon-0.19.4 benchmarks/concat_vs_interpolate.rb
excon-0.19.3 benchmarks/concat_vs_interpolate.rb
excon-0.19.2 benchmarks/concat_vs_interpolate.rb
excon-0.19.1 benchmarks/concat_vs_interpolate.rb
excon-0.19.0 benchmarks/concat_vs_interpolate.rb
excon-0.18.5 benchmarks/concat_vs_interpolate.rb
excon-0.18.4 benchmarks/concat_vs_interpolate.rb
excon-0.18.3 benchmarks/concat_vs_interpolate.rb
excon-0.18.2 benchmarks/concat_vs_interpolate.rb
excon-0.18.1 benchmarks/concat_vs_interpolate.rb
excon-0.18.0 benchmarks/concat_vs_interpolate.rb
excon-0.17.0 benchmarks/concat_vs_interpolate.rb
excon-0.16.10 benchmarks/concat_vs_interpolate.rb
excon-0.16.9 benchmarks/concat_vs_interpolate.rb