Sha256: 49f4260b0183cf98b86364c053346a35a918dc042510c150c40d23db61517c19

Contents?: true

Size: 369 Bytes

Versions: 7

Compression:

Stored size: 369 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require "bundler/setup"
require "benchmark/ips"
require "heap_profiler/full"

native = HeapProfiler::Parser::Native.new
ruby = HeapProfiler::Parser::Ruby.new

Benchmark.ips do |x|
  x.report("ruby") { ruby.parse_address("0x7f921e88a8f8") }
  x.report("cpp") { native.parse_address("0x7f921e88a8f8") }
  x.compare!
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
heap-profiler-0.7.0 benchmark/address-parsing.rb
heap-profiler-0.6.0 benchmark/address-parsing.rb
heap-profiler-0.5.0 benchmark/address-parsing.rb
heap-profiler-0.4.0 benchmark/address-parsing.rb
heap-profiler-0.3.0 benchmark/address-parsing.rb
heap-profiler-0.2.1 benchmark/address-parsing.rb
heap-profiler-0.2.0 benchmark/address-parsing.rb