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