Sha256: 714bb7db4e7beeda1b18c93f39d1ef31f0e34c1df28ff6ceea891dad4172f41a

Contents?: true

Size: 1.25 KB

Versions: 8

Compression:

Stored size: 1.25 KB

Contents

require "bundler/setup"
Bundler::GemHelper.install_tasks

require "rspec/core/rake_task"
RSpec::Core::RakeTask.new :default

namespace :benchmark do
  desc "Runs benchmarks without options"
  task :without_options do
    system "ruby benchmarks/without_options.rb"
  end

  desc "Runs benchmarks for several defaults"
  task :several_defaults do
    system "ruby benchmarks/several_defaults.rb"
  end

  desc "Runs benchmarks for defaults of params vs. options"
  task :params_vs_options do
    system "ruby benchmarks/params_vs_options.rb"
  end

  desc "Runs benchmarks with types"
  task :with_types do
    system "ruby benchmarks/with_types.rb"
  end

  desc "Runs benchmarks with defaults"
  task :with_defaults do
    system "ruby benchmarks/with_defaults.rb"
  end

  desc "Runs benchmarks with types and defaults"
  task :with_types_and_defaults do
    system "ruby benchmarks/with_types_and_defaults.rb"
  end

  desc "Runs benchmarks for plain params"
  task :params do
    system "ruby benchmarks/params.rb"
  end

  desc "Runs benchmarks various opts"
  task :options do
    system "ruby benchmarks/options.rb"
  end
end

desc "Runs profiler"
task :profile do
  system "ruby benchmarks/profiler.rb && " \
         "dot -Tpng ./tmp/profile.dot > ./tmp/profile.png"
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dry-initializer-1.4.1 Rakefile
dry-initializer-1.4.0 Rakefile
dry-initializer-1.3.0 Rakefile
dry-initializer-1.2.0 Rakefile
dry-initializer-1.1.3 Rakefile
dry-initializer-1.1.2 Rakefile
dry-initializer-1.1.1 Rakefile
dry-initializer-1.1.0 Rakefile