Sha256: fb35ac4d66de845420c01c3d284afb3ac7a059ba90bbece44ab00cb5e63f9fbe
Contents?: true
Size: 410 Bytes
Versions: 1
Compression:
Stored size: 410 Bytes
Contents
require "timeout" desc "Run 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"] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reel-dsl-0.0.0.0 | tasks/benchmarks.rake |