Sha256: 72e5adb11511df657b01375f6e8f9156d14842cee6f5a11dc1cc4ce1e70a9792

Contents?: true

Size: 1.01 KB

Versions: 9

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

9 entries across 9 versions & 1 rubygems

Version Path
dry-initializer-3.0.2 lib/tasks/benchmark.rake
dry-initializer-3.0.1 lib/tasks/benchmark.rake
dry-initializer-3.0.0 lib/tasks/benchmark.rake
dry-initializer-2.5.0 lib/tasks/benchmark.rake
dry-initializer-2.4.0 lib/tasks/benchmark.rake
dry-initializer-2.3.0 lib/tasks/benchmark.rake
dry-initializer-2.2.0 lib/tasks/benchmark.rake
dry-initializer-2.1.0 lib/tasks/benchmark.rake
dry-initializer-2.0.0 lib/tasks/benchmark.rake