Skip to content

Commit

Permalink
Execute all prepared plans in benchmark
Browse files Browse the repository at this point in the history
Turns out this doesn't matter for the current workloads, but should be
checked anyway.
  • Loading branch information
michaelmior committed Sep 11, 2015
1 parent 28a4a09 commit be45972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nose/cli/execute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def bench_update(backend, indexes, plan, index_values,
# Execute each plan and measure the time
start_time = Time.now
setting_list.zip(condition_list).each do |settings, conditions|
prepared.first.execute settings, conditions
prepared.each { |p| p.execute settings, conditions }
end
elapsed = Time.now - start_time

Expand Down

0 comments on commit be45972

Please sign in to comment.