Sha256: f374f73c7054117aee6155725674fc7a6e4e98e866e25845742f0ad0c4fa47cb
Contents?: true
Size: 458 Bytes
Versions: 32
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
32 entries across 32 versions & 5 rubygems