bench: Allow skip benchmark
Co-authored-by: Martin Ankerl <Martin.Ankerl@gmail.com>
This commit is contained in:
1 parent
b4d0366b47
commit
ce3e6a7cb2
1 file changed
+4
-1
+4
-1
@@ -70,7 +70,10 @@ void benchmark::BenchRunner::RunAll(const Args& args)
|
||||
}
|
||||
std::cout << bench.complexityBigO() << std::endl;
|
||||
}
|
||||
benchmarkResults.push_back(bench.results().back());
|
||||
|
||||
if (!bench.results().empty()) {
|
||||
benchmarkResults.push_back(bench.results().back());
|
||||
}
|
||||
}
|
||||
|
||||
GenerateTemplateResults(benchmarkResults, args.output_csv, "# Benchmark, evals, iterations, total, min, max, median\n"
|
||||
|
||||
Reference in new issue
Block a user