Sha256: 390ba9d9c1d677503d79bdf7d2396ebed05573fb198e66635a0fc820898fd25b

Contents?: true

Size: 341 Bytes

Versions: 14

Compression:

Stored size: 341 Bytes

Contents

require_relative './shared'

cs1 = CharacterSet.new(0...0x88000)
cs2 = CharacterSet.new(0x88000..0x10FFFF)

ss1 = SortedSet.new(0...0x88000)
ss2 = SortedSet.new(0x88000..0x10FFFF)

benchmark(
  caption: 'Merging entries',
  cases: {
    'CharacterSet#merge' => -> { cs1.merge(cs2) },
    'SortedSet#merge'    => -> { ss1.merge(ss2) },
  }
)

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
character_set-1.8.0-java tasks/benchmarks/z_merge.rb
character_set-1.8.0 tasks/benchmarks/z_merge.rb
character_set-1.7.0-java tasks/benchmarks/z_merge.rb
character_set-1.7.0 tasks/benchmarks/z_merge.rb
character_set-1.6.0-java benchmarks/z_merge.rb
character_set-1.6.0 benchmarks/z_merge.rb
character_set-1.5.0-java benchmarks/z_merge.rb
character_set-1.5.0 benchmarks/z_merge.rb
character_set-1.4.1-java benchmarks/z_merge.rb
character_set-1.4.1 benchmarks/z_merge.rb
character_set-1.4.0-java benchmarks/z_merge.rb
character_set-1.4.0 benchmarks/z_merge.rb
character_set-1.3.0-java benchmarks/z_merge.rb
character_set-1.3.0 benchmarks/z_merge.rb