Sha256: 6ecdc832429dca04c3726be16c94519de8c70d8e8f4b8b40b4f956aea40c4add

Contents?: true

Size: 509 Bytes

Versions: 44

Compression:

Stored size: 509 Bytes

Contents

#!/usr/bin/env ruby
# File: script/benchmark_subject

require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib ri_cal]))
require 'rubygems'
subject_name = ARGV[0] || "paris_eastern"

require File.expand_path(File.join(File.dirname(__FILE__), %w[.. performance], [subject_name], "subject"))

devnul = Object.new
def devnul.puts(string)
end

subject = Subject.new(devnul)

require 'benchmark'

Benchmark.bmbm do |results|
  results.report("Benchmark #{subject_name}:") { subject.run }
end

puts
puts

Version data entries

44 entries across 44 versions & 9 rubygems

Version Path
demingfactor-ri_cal-0.10.0 script/benchmark_subject
demingfactor-ri_cal-0.9.0 script/benchmark_subject
ebeigarts-ri_cal-0.8.1 script/benchmark_subject
rubyredrick-ri_cal-0.6.0 script/benchmark_subject
rubyredrick-ri_cal-0.6.1 script/benchmark_subject
rubyredrick-ri_cal-0.6.2 script/benchmark_subject
rubyredrick-ri_cal-0.6.3 script/benchmark_subject
rubyredrick-ri_cal-0.7.0 script/benchmark_subject
rubyredrick-ri_cal-0.7.1 script/benchmark_subject
rubyredrick-ri_cal-0.7.2 script/benchmark_subject
rubyredrick-ri_cal-0.7.4 script/benchmark_subject
rubyredrick-ri_cal-0.7.5 script/benchmark_subject
rubyredrick-ri_cal-0.7.7 script/benchmark_subject
rubyredrick-ri_cal-0.8.0 script/benchmark_subject
rubyredrick-ri_cal-0.8.1 script/benchmark_subject
rubyredrick-ri_cal-0.8.2 script/benchmark_subject
rubyredrick-ri_cal-0.8.4 script/benchmark_subject
friflaj_ri_cal-0.9.0 script/benchmark_subject
awallis-ri_cal-0.8.8 script/benchmark_subject
justinsoong-ri_cal-0.8.9 script/benchmark_subject