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
excon-0.51.0 benchmarks/concat_vs_interpolate.rb
excon-0.50.1 benchmarks/concat_vs_interpolate.rb
excon-0.50.0 benchmarks/concat_vs_interpolate.rb
able-neo4j-1.0.0 vendor/bundle/jruby/1.9/gems/excon-0.45.4/benchmarks/concat_vs_interpolate.rb
excon-0.49.0 benchmarks/concat_vs_interpolate.rb
excon-0.48.0 benchmarks/concat_vs_interpolate.rb
excon-0.47.0 benchmarks/concat_vs_interpolate.rb
excon-0.46.0 benchmarks/concat_vs_interpolate.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/excon-0.45.4/benchmarks/concat_vs_interpolate.rb
excon-0.45.4 benchmarks/concat_vs_interpolate.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/excon-0.45.3/benchmarks/concat_vs_interpolate.rb
excon-0.45.3 benchmarks/concat_vs_interpolate.rb
excon-0.45.2 benchmarks/concat_vs_interpolate.rb
excon-0.45.1 benchmarks/concat_vs_interpolate.rb
excon-0.45.0 benchmarks/concat_vs_interpolate.rb
excon-0.44.4 benchmarks/concat_vs_interpolate.rb
excon-0.44.3 benchmarks/concat_vs_interpolate.rb
excon-0.44.2 benchmarks/concat_vs_interpolate.rb
excon-0.44.1 benchmarks/concat_vs_interpolate.rb
excon-0.44.0 benchmarks/concat_vs_interpolate.rb