Sha256: f2e160547f9fd837b44df840d278ccb67f4c7866ed432718e18c5cadcf400b55

Contents?: true

Size: 451 Bytes

Versions: 4

Compression:

Stored size: 451 Bytes

Contents

namespace :bench do

  task :load do
    require 'bench/runner'
  end

  desc "Run a Benchmark report against the Benchmark server"
  task :report => :load do
    Bench::Runner.new.build_report
  end

  desc "Run Benchmark requests against the 'simple' service"
  task :simple, [ :times ] => :load do |t, args|
    runner = Bench::Runner.new(:output => '/dev/null')
    runner.benchmark_service('v1', 'simple', {}, args[:times] || 1, true)
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sanford-0.4.0 bench/tasks.rb
sanford-0.3.0 bench/tasks.rb
sanford-0.2.0 bench/tasks.rb
sanford-0.1.0 bench/tasks.rb