Sha256: a5e6d6a47a908b9f2d1109125086405c95e3df2263c59956500f2dd4673f6b09

Contents?: true

Size: 282 Bytes

Versions: 14

Compression:

Stored size: 282 Bytes

Contents

require_relative './shared'

cs = CharacterSet.new(0..0x10FFFF)
ss = SortedSet.new(0..0x10FFFF)

benchmark(
  caption: 'Removing entries',
  cases: {
    'CharacterSet#delete' => -> { cs.delete(rand(0x10FFFF)) },
    'SortedSet#delete'    => -> { ss.delete(rand(0x10FFFF)) },
  }
)

Version data entries

14 entries across 14 versions & 1 rubygems

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