Skip to content

Commit abc7845

Browse files
multiple threads
1 parent 05b0b6f commit abc7845

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

benchmarks/field/Field.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ static void BM_MulFields(benchmark::State &state) {
4848
}
4949
}
5050

51-
BENCHMARK(BM_AddScalar)->Range(8, 8<<20)->Setup(DoSetup);
52-
BENCHMARK(BM_AddFields)->Range(8, 8<<20)->Setup(DoSetup);
53-
BENCHMARK(BM_MulScalar)->Range(8, 8<<20)->Setup(DoSetup);
54-
BENCHMARK(BM_MulFields)->Range(8, 8<<20)->Setup(DoSetup);
51+
BENCHMARK(BM_AddScalar)->ThreadRange(1, 8)->Range(8, 8<<20)->Setup(DoSetup);
52+
BENCHMARK(BM_AddFields)->ThreadRange(1, 8)->Range(8, 8<<20)->Setup(DoSetup);
53+
BENCHMARK(BM_MulScalar)->ThreadRange(1, 8)->Range(8, 8<<20)->Setup(DoSetup);
54+
BENCHMARK(BM_MulFields)->ThreadRange(1, 8)->Range(8, 8<<20)->Setup(DoSetup);
5555

5656
BENCHMARK_MAIN();

0 commit comments

Comments
 (0)