Skip to content
Snippets Groups Projects
Commit c9486997 authored by Yorick Peterse's avatar Yorick Peterse
Browse files

Added benchmark for tracking allocation overhead

parent 162f5bdd
No related branches found
No related tags found
No related merge requests found
Pipeline #
require_relative 'benchmark_helper'
Benchmark.ips do |bench|
bench.report 'disabled' do
'a' * 32
end
bench.report 'enabled' do |times|
Allocations.start
i = 0
while i < times
'a' * 32
i += 1
end
Allocations.stop
end
bench.compare!
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment