Skip to content

Commit

Permalink
group tasks by category based on doConcurrentSearches, not searchThre…
Browse files Browse the repository at this point in the history
…adCount
  • Loading branch information
Michael Sokolov committed Mar 8, 2020
1 parent ffb8c18 commit 87a8063
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/perf/SearchPerfTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,7 @@ public void run() {
// Load the tasks from a file:
final int taskRepeatCount = args.getInt("-taskRepeatCount");
final int numTaskPerCat = args.getInt("-tasksPerCat");
boolean groupByCat = searchThreadCount > 1;
tasks = new LocalTaskSource(indexState, taskParser, tasksFile, staticRandom, random, numTaskPerCat, taskRepeatCount, doPKLookup, groupByCat);
tasks = new LocalTaskSource(indexState, taskParser, tasksFile, staticRandom, random, numTaskPerCat, taskRepeatCount, doPKLookup, doConcurrentSearches);
System.out.println("Task repeat count " + taskRepeatCount);
System.out.println("Tasks file " + tasksFile);
System.out.println("Num task per cat " + numTaskPerCat);
Expand Down

0 comments on commit 87a8063

Please sign in to comment.