Skip to content

Commit

Permalink
Change number of threads in Benchmarking threadpool
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanl-bq committed Nov 2, 2023
1 parent 5f10964 commit e3f7596
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public static void testClientSetGet(
concurrentNum, clientCount, tasks.size());
}
long before = System.nanoTime();
ExecutorService threadPool = Executors.newFixedThreadPool(concurrentNum);
ExecutorService threadPool = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());

// create threads and add them to the async pool.
// This will start execution of all the concurrent tasks.
Expand Down

0 comments on commit e3f7596

Please sign in to comment.