Sha256: 5ed4061116c883d03b739a85725ff5f7ee77edf286c6638a154d879e96cd7344

Contents?: true

Size: 869 Bytes

Versions: 1

Compression:

Stored size: 869 Bytes

Contents

require "bundler/gem_tasks"

namespace :bench do

  desc "Run the bench script."
  task :run do
    require 'bench/bench_runner'
    XmlssBenchRunner.new(1000).run
  end

  desc "Run the profiler on 1000 rows."
  task :profiler do
    require 'bench/profiler_runner'

    runner = XmlssProfilerRunner.new(1000)
    runner.print_flat(STDOUT, :min_percent => 1)
  end

  desc "Run the example workbook builds."
  task :examples do
    require 'examples/simple'
    require 'examples/layout'
    require 'examples/text'
    require 'examples/styles'
  end

  desc "Run all the tests, then the profiler, then the bench."
  task :all do
    Rake::Task['test'].invoke
    puts
    Rake::Task['bench:profiler'].invoke
    puts
    Rake::Task['bench:run'].invoke
    puts
    Rake::Task['bench:examples'].invoke
  end

end

task :bench do
  Rake::Task['bench:run'].invoke
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xmlss-1.0.0 Rakefile