MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / DenseThreadRange

Method DenseThreadRange

deps/google-benchmark/src/benchmark_register.cc:453–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451}
452
453Benchmark* Benchmark::DenseThreadRange(int min_threads, int max_threads,
454 int stride) {
455 BM_CHECK_GT(min_threads, 0);
456 BM_CHECK_GE(max_threads, min_threads);
457 BM_CHECK_GE(stride, 1);
458
459 for (auto i = min_threads; i < max_threads; i += stride) {
460 thread_counts_.push_back(i);
461 }
462 thread_counts_.push_back(max_threads);
463 return this;
464}
465
466Benchmark* Benchmark::ThreadPerCpu() {
467 thread_counts_.push_back(CPUInfo::Get().num_cpus);

Callers 1

benchmark_test.ccFile · 0.80

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected