Indenting with 2 spaces
This commit is contained in:
parent
f87723e7ad
commit
eb1683c933
@ -22,9 +22,9 @@ public class PrimeNumbersUnitTest {
|
|||||||
@Test
|
@Test
|
||||||
public void givenPrimesCalculated_whenUsingPoolsAndOneThread_thenOneThreadSlowest() {
|
public void givenPrimesCalculated_whenUsingPoolsAndOneThread_thenOneThreadSlowest() {
|
||||||
Options opt = new OptionsBuilder()
|
Options opt = new OptionsBuilder()
|
||||||
.include(Benchmarker.class.getSimpleName())
|
.include(Benchmarker.class.getSimpleName())
|
||||||
.forks(1)
|
.forks(1)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
new Runner(opt).run();
|
new Runner(opt).run();
|
||||||
@ -40,7 +40,7 @@ public class PrimeNumbersUnitTest {
|
|||||||
for (int granularity : PrimeNumbers.GRANULARITIES) {
|
for (int granularity : PrimeNumbers.GRANULARITIES) {
|
||||||
int parallelism = ForkJoinPool.getCommonPoolParallelism();
|
int parallelism = ForkJoinPool.getCommonPoolParallelism();
|
||||||
ForkJoinPool pool =
|
ForkJoinPool pool =
|
||||||
(ForkJoinPool) Executors.newWorkStealingPool(parallelism);
|
(ForkJoinPool) Executors.newWorkStealingPool(parallelism);
|
||||||
|
|
||||||
stealCountInfo(info, granularity, pool);
|
stealCountInfo(info, granularity, pool);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user