bixby-bench

A simple wrapper around the stdlib Benchmark with allocation tracing mixed in

Installation and Usage

gem install bixby-bench

Usage is very similar to Benchmark.bm:

Bixby::Bench.run(10_000) do |b| # 10,000 = number of sample runs
  b.sample('test_method') do
    Test.method()
  end
  b.divider
  b.sample('test_method2') do
    Test.method2()
  end
end

Contributing to bixby-bench

Copyright © 2014 Chetan Sarva. See LICENSE.txt for further details.