Skip to content

Commit

Permalink
Benchmark setup, 56s for 1.9.3, 50s for 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Jun 30, 2013
1 parent 73f7112 commit 6289751
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions myapp/app/workers/lazy_worker.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class LazyWorker
include Sidekiq::Worker

def perform
end
end
11 changes: 11 additions & 0 deletions myapp/bench.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
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

0 comments on commit 6289751

Please sign in to comment.