Sha256: a1a336800e0e221423b4660e22dbad379b4a99f2a1f31d61369ceb81e47f38f0
Contents?: true
Size: 506 Bytes
Versions: 3
Compression:
Stored size: 506 Bytes
Contents
$:.unshift File.expand_path '../lib', File.dirname(__FILE__) require 'event_emitter' require 'benchmark' class Bench class Error < StandardError end def self.run puts "ruby #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]" bench = self.new Benchmark.bm do |x| bench.methods.select{|i| i.to_s =~ /^bench_(.+)$/}.sort.each do |m| x.report m.to_s.scan(/^bench_(.+)$/)[0][0] do bench.__send__ m end end end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
event_emitter-0.2.6 | benchmark/benchmark_helper.rb |
event_emitter-with_instance_listener-0.2.5 | benchmark/benchmark_helper.rb |
event_emitter-0.2.5 | benchmark/benchmark_helper.rb |