Sha256: 6fb394d6691afaf5f83ef416f2141c560f610cba357679c1d82ff0adc92e1640

Contents?: true

Size: 396 Bytes

Versions: 18

Compression:

Stored size: 396 Bytes

Contents

# Some classes used in measurement tests
class Allocator
  def make_arrays
    10.times {|i| Array.new}
  end

  def make_hashes
    Hash.new
    Hash.new
    Hash.new
    Hash.new
    Hash.new
  end

  def make_strings
    a_string = 'a'
    b_string = a_string * 100
    String.new(b_string)
  end

  def run
    make_arrays
    make_hashes
    make_strings
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
ruby-prof-1.7.1-x64-mingw-ucrt test/measure_allocations.rb
ruby-prof-1.7.1 test/measure_allocations.rb
ruby-prof-1.7.0-x64-mingw-ucrt test/measure_allocations.rb
ruby-prof-1.7.0 test/measure_allocations.rb
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/ruby-prof-1.6.3/test/measure_allocations.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/ruby-prof-1.6.3/test/measure_allocations.rb
ruby-prof-1.6.3-x64-mingw-ucrt test/measure_allocations.rb
ruby-prof-1.6.3 test/measure_allocations.rb
ruby-prof-1.6.2-x64-mingw-ucrt test/measure_allocations.rb
ruby-prof-1.6.2 test/measure_allocations.rb
ruby-prof-1.6.1 test/measure_allocations.rb
ruby-prof-1.6.1-x64-mingw-ucrt test/measure_allocations.rb
ruby-prof-1.5.0-x64-mingw-ucrt test/measure_allocations.rb
ruby-prof-1.5.0 test/measure_allocations.rb
ruby-prof-1.4.5-x64-mingw-ucrt test/measure_allocations.rb
ruby-prof-1.4.5 test/measure_allocations.rb
ruby-prof-1.4.4-x64-mingw-ucrt test/measure_allocations.rb
ruby-prof-1.4.4 test/measure_allocations.rb