Sha256: 7a9ee98ec7ab3c72ad53a4a9beaad4c0cd4b7525932a662e2927cf12d458cb5b

Contents?: true

Size: 349 Bytes

Versions: 175

Compression:

Stored size: 349 Bytes

Contents

require 'rubygems'
require 'tach'

CR_LF = "\r\n"

Tach.meter(1_000_000) do
  tach('constant') do
    '' << CR_LF
  end
  tach('string') do
    '' << "\r\n"
  end
end

# +----------+----------+
# | tach     | total    |
# +----------+----------+
# | constant | 0.819885 |
# +----------+----------+
# | string   | 0.893602 |
# +----------+----------+

Version data entries

175 entries across 173 versions & 6 rubygems

Version Path
excon-0.64.0 benchmarks/cr_lf.rb
excon-0.63.0 benchmarks/cr_lf.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/excon-0.62.0/benchmarks/cr_lf.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/excon-0.62.0/benchmarks/cr_lf.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/excon-0.62.0/benchmarks/cr_lf.rb
excon-0.62.0 benchmarks/cr_lf.rb
excon-0.61.0 benchmarks/cr_lf.rb
excon-0.60.0 benchmarks/cr_lf.rb
excon-0.59.0 benchmarks/cr_lf.rb
excon-0.58.0 benchmarks/cr_lf.rb
excon-0.57.1 benchmarks/cr_lf.rb
excon-0.57.0 benchmarks/cr_lf.rb
excon-0.56.0 benchmarks/cr_lf.rb
excon-0.55.0 benchmarks/cr_lf.rb
excon-0.54.0 benchmarks/cr_lf.rb
excon-0.53.0 benchmarks/cr_lf.rb
excon-0.52.0 benchmarks/cr_lf.rb
excon-0.51.0 benchmarks/cr_lf.rb
excon-0.50.1 benchmarks/cr_lf.rb
excon-0.50.0 benchmarks/cr_lf.rb