コード例 #1
0
 @Override
 protected TaskExecutor createTaskExecutor() {
   final ExecutorService executorService = new ForkJoinPool(BenchmarkRunner.numThreads());
   final int minPriorityInc = BenchmarkRunner.minPriority();
   final int maxPriorityInc = BenchmarkRunner.maxPriority();
   return new GenericTaskExecutor(minPriorityInc, maxPriorityInc, executorService);
 }
コード例 #2
0
 @Override
 protected TaskExecutor createTaskExecutor() {
   final int numThreads = BenchmarkRunner.numThreads();
   return new StandardWstTaskExecutor(PoolType.JDK, numThreads);
 }