Sha256: 88beb4994626817442abdc1e720ae93a9262419ea42508d679f5271ac830d341

Contents?: true

Size: 555 Bytes

Versions: 22

Compression:

Stored size: 555 Bytes

Contents

require 'bundler/gem_tasks'
require 'shellwords'

task :ruby_examples do
  Dir.glob(File.expand_path('./examples/*.rb', __dir__)).sort.each do |file|
    Bundler.with_clean_env do
      sh ['time', 'bundle', 'exec', 'ruby', file].shelljoin
    end
    puts
  end
end

task :yaml_examples do
  Dir.glob(File.expand_path('./examples/yaml/*.yml', __dir__)).sort.each do |file|
    Bundler.with_clean_env do
      sh ['time', 'bundle', 'exec', 'exe/benchmark-driver', file].shelljoin
    end
    puts
  end
end

task default: [:ruby_examples, :yaml_examples]

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
benchmark_driver-0.4.1 Rakefile
benchmark_driver-0.4.0 Rakefile