Sha256: 123f8a008e88dfc2cb74a29e78945ed3e5ba510354c9daeaacad77ab540aa260

Contents?: true

Size: 458 Bytes

Versions: 4

Compression:

Stored size: 458 Bytes

Contents

require 'timeout'

desc "Run Celluloid benchmarks"
task :benchmark do
  begin
    Timeout.timeout(120) do
      glob = File.expand_path("../../benchmarks/*.rb", __FILE__)
      Dir[glob].each { |benchmark| load benchmark }
    end
  rescue Exception, Timeout::Error => ex
    puts "ERROR: Couldn't complete benchmark: #{ex.class}: #{ex}"
    puts "  #{ex.backtrace.join("\n  ")}"

    exit 1 unless ENV['CI'] # Hax for running benchmarks on Travis
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
celluloid-essentials-0.20.0.pre14 tasks/benchmarks.rake
celluloid-fsm-0.9.0.pre10 tasks/benchmarks.rake
celluloid-essentials-0.20.0.pre13 tasks/benchmarks.rake
celluloid-essentials-0.20.0.pre12 tasks/benchmarks.rake