Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 14 lines (10 sloc) 0.275 kb
1 2 3 4 5 6 7 8 9 10 11 12 13
require '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
Something went wrong with that request. Please try again.