Sha256: 327d871028f11106648ca18334bcccad3c4945245c4cc0db6c35608d243cca58
Contents?: true
Size: 568 Bytes
Versions: 8
Compression:
Stored size: 568 Bytes
Contents
require 'bundler/setup' require 'sober_swag' require 'yaml' require 'benchmark/ips' ## # Quick and dirty way to benchmark things. class Bench class << self def report(name, &block) puts name data[name] ||= Benchmark.ips(&block).data end def data @data ||= {} end def write!(filename) File.open(filename, 'w') do |f| f << YAML.dump(data) end end end end Dir['bench/benchmarks/**/*.rb'].sort.each do |file| require_relative file.gsub(%r{^bench/}, '') end Bench.write!('benchmark_results.yaml')
Version data entries
8 entries across 8 versions & 1 rubygems