Sha256: 3adc40fffaf4b407d5ec672f3941a9543948b953ec4e80444930be9f7905a793

Contents?: true

Size: 221 Bytes

Versions: 24

Compression:

Stored size: 221 Bytes

Contents

require 'ruby-prof'
require 'benchmark'

module BenchmarkHelper

	def profile(n, &block)
		result = RubyProf.profile { n.times(&block) }
		printer = RubyProf::FlatPrinter.new(result)
		printer.print(STDOUT, {})
	end

end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
CloudSesame-1.0.1 spec/helpers/benchmark_helper.rb
CloudSesame-1.0.0 spec/helpers/benchmark_helper.rb
CloudSesame-0.9.4 spec/helpers/benchmark_helper.rb
CloudSesame-0.9.3 spec/helpers/benchmark_helper.rb
CloudSesame-0.9.2 spec/helpers/benchmark_helper.rb
CloudSesame-0.9.1 spec/helpers/benchmark_helper.rb
CloudSesame-0.9.0 spec/helpers/benchmark_helper.rb
CloudSesame-0.8.3 spec/helpers/benchmark_helper.rb
CloudSesame-0.8.2 spec/helpers/benchmark_helper.rb
CloudSesame-0.8.1 spec/helpers/benchmark_helper.rb
CloudSesame-0.8.0 spec/helpers/benchmark_helper.rb
CloudSesame-0.7.13 spec/helpers/benchmark_helper.rb
CloudSesame-0.7.12 spec/helpers/benchmark_helper.rb
CloudSesame-0.7.11 spec/helpers/benchmark_helper.rb
CloudSesame-0.7.10 spec/helpers/benchmark_helper.rb
CloudSesame-0.7.9 spec/helpers/benchmark_helper.rb
CloudSesame-0.7.8 spec/helpers/benchmark_helper.rb
CloudSesame-0.7.7 spec/helpers/benchmark_helper.rb
CloudSesame-0.7.5 spec/helpers/benchmark_helper.rb
CloudSesame-0.7.4 spec/helpers/benchmark_helper.rb