Permalink
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (10 sloc) 280 Bytes
require 'spec/spec_helper'
require 'logger'
require 'benchmark'
# Delayed::Worker.logger = Logger.new('/dev/null')
Benchmark.bm(10) do |x|
Delayed::Job.delete_all
n = 10000
n.times { "foo".delay.length }
x.report { Delayed::Worker.new(:quiet => true).work_off(n) }
end