mirror of
https://github.com/google/benchmark.git
synced 2025-02-06 01:00:17 +08:00
Remove dead code, tidy output
This commit is contained in:
parent
e5f5a0d30e
commit
fc52b86270
@ -341,10 +341,8 @@ void ConsoleReporter::ReportRuns(const std::vector<BenchmarkRunData>& reports) {
|
|||||||
BenchmarkRunData stddev_data;
|
BenchmarkRunData stddev_data;
|
||||||
internal::ComputeStats(reports, &mean_data, &stddev_data);
|
internal::ComputeStats(reports, &mean_data, &stddev_data);
|
||||||
|
|
||||||
// Output using PrintRun.
|
|
||||||
PrintRunData(mean_data);
|
PrintRunData(mean_data);
|
||||||
PrintRunData(stddev_data);
|
PrintRunData(stddev_data);
|
||||||
fprintf(stdout, "\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConsoleReporter::PrintRunData(const BenchmarkRunData& result) {
|
void ConsoleReporter::PrintRunData(const BenchmarkRunData& result) {
|
||||||
@ -1141,16 +1139,9 @@ void RunMatchingBenchmarks(const std::string& spec,
|
|||||||
context.cpu_scaling_enabled = CpuScalingEnabled();
|
context.cpu_scaling_enabled = CpuScalingEnabled();
|
||||||
context.name_field_width = name_field_width;
|
context.name_field_width = name_field_width;
|
||||||
|
|
||||||
if (reporter->ReportContext(context)) {
|
if (reporter->ReportContext(context))
|
||||||
for (internal::Benchmark::Instance& benchmark : benchmarks) {
|
for (internal::Benchmark::Instance& benchmark : benchmarks)
|
||||||
//std::unique_ptr<thread::ThreadPool> pool;
|
Benchmark::RunInstance(benchmark, reporter);
|
||||||
//if (benchmark.threads > 0) {
|
|
||||||
// pool = new thread::ThreadPool(benchmark.threads);
|
|
||||||
// pool->StartWorkers();
|
|
||||||
//}
|
|
||||||
Benchmark::RunInstance(/*pool, */benchmark, reporter);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void FindMatchingBenchmarkNames(const std::string& spec,
|
void FindMatchingBenchmarkNames(const std::string& spec,
|
||||||
|
Loading…
Reference in New Issue
Block a user