mirror of
https://github.com/google/benchmark.git
synced 2025-02-05 08:40:17 +08:00
Fix #133. Comment now contains compilable code.
This commit is contained in:
parent
fdd99b12a8
commit
47c304536e
@ -86,8 +86,7 @@ BENCHMARK(BM_SetInsert)->RangePair(1<<10, 8<<10, 1, 512);
|
|||||||
// arbitrary set of arguments to run the microbenchmark on.
|
// arbitrary set of arguments to run the microbenchmark on.
|
||||||
// The following example enumerates a dense range on
|
// The following example enumerates a dense range on
|
||||||
// one parameter, and a sparse range on the second.
|
// one parameter, and a sparse range on the second.
|
||||||
static benchmark::internal::Benchmark* CustomArguments(
|
static void CustomArguments(benchmark::internal::Benchmark* b) {
|
||||||
benchmark::internal::Benchmark* b) {
|
|
||||||
for (int i = 0; i <= 10; ++i)
|
for (int i = 0; i <= 10; ++i)
|
||||||
for (int j = 32; j <= 1024*1024; j *= 8)
|
for (int j = 32; j <= 1024*1024; j *= 8)
|
||||||
b = b->ArgPair(i, j);
|
b = b->ArgPair(i, j);
|
||||||
|
Loading…
Reference in New Issue
Block a user