Sha256: 3fdca2f0bcfdfbcb936755eeec031baa38399e8fd161faab2c595c8ae9b9a39c

Contents?: true

Size: 253 Bytes

Versions: 14

Compression:

Stored size: 253 Bytes

Contents

require_relative './shared'

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

benchmark(
  caption: 'Getting the min and max',
  cases: {
    'CharacterSet#minmax' => -> { cs.minmax },
    'SortedSet#minmax'    => -> { ss.minmax },
  }
)

Version data entries

14 entries across 14 versions & 1 rubygems

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