Skip to content

Commit

Permalink
Fix script (#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
douglara authored Feb 15, 2022
1 parent 7bb31ee commit 2edcd02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/benchmark_job_throughput.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@

Benchmark.ips do |x|
x.report("with priority") do
GoodJob::Execution.unfinished.priority_ordered.only_scheduled(use_coalesce: true).limit(1).with_advisory_lock do |executions|
GoodJob::Execution.unfinished.priority_ordered.only_scheduled.limit(1).with_advisory_lock do |executions|
# executions.first&.destroy!
end
end

x.report("without priority") do
GoodJob::Execution.unfinished.only_scheduled(use_coalesce: true).limit(1).with_advisory_lock do |executions|
GoodJob::Execution.unfinished.only_scheduled.limit(1).with_advisory_lock do |executions|
# executions.first&.destroy!
end
end
Expand Down

0 comments on commit 2edcd02

Please sign in to comment.