Sha256: 245911826fc7a4e89e6c441a2f4d5b94422aeede56379e2cdb53132383db47b6

Contents?: true

Size: 1.01 KB

Versions: 2

Compression:

Stored size: 1.01 KB

Contents

namespace :benchmark do
  desc 'Runs benchmarks for plain params'
  task :plain_params do
    system 'ruby benchmarks/plain_params.rb'
  end

  desc 'Runs benchmarks for plain options'
  task :plain_options do
    system 'ruby benchmarks/plain_options.rb'
  end

  desc 'Runs benchmarks for value coercion'
  task :with_coercion do
    system 'ruby benchmarks/with_coercion.rb'
  end

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

  desc 'Runs benchmarks with defaults and coercion'
  task :with_defaults_and_coercion do
    system 'ruby benchmarks/with_defaults_and_coercion.rb'
  end

  desc 'Runs benchmarks for several defaults'
  task :compare_several_defaults do
    system 'ruby benchmarks/with_several_defaults.rb'
  end
end

desc 'Runs all benchmarks'
task benchmark: %i[
  benchmark:plain_params
  benchmark:plain_options
  benchmark:with_coercion
  benchmark:with_defaults
  benchmark:with_defaults_and_coercion
  benchmark:compare_several_defaults
]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dry-initializer-3.0.4 lib/tasks/benchmark.rake
dry-initializer-3.0.3 lib/tasks/benchmark.rake