Sha256: ba1dbc2e9bbb46d9026f08aff54f78e349e314df3dbb66ce5fb66efe516cc5e7
Contents?: true
Size: 237 Bytes
Versions: 5
Compression:
Stored size: 237 Bytes
Contents
require_relative 'lib/bitarray' require 'memory_profiler' report = MemoryProfiler.report do ba = BitArray.new(1000000) 1000000.times do |i| ba[rand(100000)] = 1 ba[rand(100000)] = 0 end end report.pretty_print
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
bitarray-1.3.1 | memory-test.rb |
bitarray-1.3.0 | memory-test.rb |
bitarray-1.2.0 | memory-test.rb |
bitarray-1.1.0 | memory-test.rb |
bitarray-1.0.0 | memory-test.rb |