Sha256: ca87d5981b302fa1bbcd7befeb15b902ea993386b4d1feddee7cf917c5e25799

Contents?: true

Size: 195 Bytes

Versions: 26

Compression:

Stored size: 195 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require 'benchmark/ips'

url = 'https://jekyllrb.com'

Benchmark.ips do |x|
  x.report('+=') { url += '/' }
  x.report('<<') { url << '/' }
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
lbenicio-minimal-v1-1.6.4 benchmark/string-concat
lbenicio-minimal-v1-1.6.3 benchmark/string-concat
lbenicio-minimal-v1-1.6.2 benchmark/string-concat
lbenicio-minimal-v1-1.6.1 benchmark/string-concat
lbenicio-minimal-v1-1.5.3 benchmark/string-concat
lbenicio-minimal-v1-1.5.2 benchmark/string-concat
lbenicio-minimal-v1-1.5.0 benchmark/string-concat
lbenicio-minimal-v1-1.4.0 benchmark/string-concat
lbenicio-minimal-v1-1.3.3 benchmark/string-concat
lbenicio-minimal-v1-1.3.2 benchmark/string-concat
lbenicio-minimal-v1-1.3.1 benchmark/string-concat
lbenicio-minimal-v1-1.3.0 benchmark/string-concat
lbenicio-minimal-v1-1.2.1 benchmark/string-concat
lbenicio-minimal-v1-1.2.0 benchmark/string-concat
lbenicio-minimal-v1-1.1.9 benchmark/string-concat
lbenicio-minimal-v1-1.1.8 benchmark/string-concat
lbenicio-minimal-v1-1.1.7 benchmark/string-concat
lbenicio-minimal-v1-1.1.6 benchmark/string-concat
lbenicio-minimal-v1-1.1.5 benchmark/string-concat
lbenicio-minimal-v1-1.1.4 benchmark/string-concat