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