Sha256: 8315c33ee37a58590a16196a867b950bdfd4076e5044e81d6390fdf9540a6bd5

Contents?: true

Size: 460 Bytes

Versions: 3

Compression:

Stored size: 460 Bytes

Contents

#!/usr/bin/env ruby

require 'bullshit'
Bullshit::Case.autorun false

bs_cases_methods = []
for filename in ARGV
  if filename =~ /\.rb\Z/
    warn "Loading #{filename}."
    load filename
    next
  end
  basename = File.basename(filename)
  basename =~ /\A([^-]+)#([^-]+)\.dat\Z/ or next
  bs_cases_methods << [ $1, $2, filename ]
end
Bullshit.compare do
  bs_cases_methods.each do |c, m, f|
    benchmark Object.const_get(c), m.to_sym, :load => f
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bullshit-0.1.3 bin/bs_compare
bullshit-0.1.2 bin/bs_compare
bullshit-0.1.1 bin/bs_compare