1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/myapp/bench.rb
2013-06-30 12:15:19 -07:00

11 lines
211 B
Ruby

require 'sidekiq'
Sidekiq.configure_client do |config|
config.redis = { :namespace => 'foo' }
end
jobs = []
20_000.times do
jobs << []
end
Sidekiq::Client.push_bulk 'class' => 'LazyWorker', 'args' => jobs