Sha256: 4114ab2dc88033a4a55d89c476dfdca52c6220970312c50c4562845a17f0f519
Contents?: true
Size: 450 Bytes
Versions: 7
Compression:
Stored size: 450 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require "bundler/setup" require "benchmark/ips" require "heap_profiler/full" FIXTURE_PATH = File.expand_path("../../test/fixtures/diffed-heap/allocated.heap", __FILE__) native = HeapProfiler::Parser::Native.new ruby = HeapProfiler::Parser::Ruby.new Benchmark.ips do |x| x.report("ruby") { ruby.build_index(FIXTURE_PATH) } x.report("cpp") { native.build_index(FIXTURE_PATH) } x.compare! end
Version data entries
7 entries across 7 versions & 1 rubygems