mirror of
https://github.com/google/benchmark.git
synced 2025-03-30 22:20:23 +08:00
Spelling fixes (#543)
Upstream spelling fix changes from Pony, ec47ba8f565726414552f4bbf97d7, by ka7@la-evento.com that effected google/benchmark.
This commit is contained in:
parent
47df49e573
commit
69a52cff4f
@ -7,7 +7,7 @@ import ycm_core
|
|||||||
flags = [
|
flags = [
|
||||||
'-Wall',
|
'-Wall',
|
||||||
'-Werror',
|
'-Werror',
|
||||||
'-pendantic-errors',
|
'-pedantic-errors',
|
||||||
'-std=c++0x',
|
'-std=c++0x',
|
||||||
'-fno-strict-aliasing',
|
'-fno-strict-aliasing',
|
||||||
'-O3',
|
'-O3',
|
||||||
|
@ -84,7 +84,7 @@ DEFINE_string(benchmark_out_format, "json",
|
|||||||
"The format to use for file output. Valid values are "
|
"The format to use for file output. Valid values are "
|
||||||
"'console', 'json', or 'csv'.");
|
"'console', 'json', or 'csv'.");
|
||||||
|
|
||||||
DEFINE_string(benchmark_out, "", "The file to write additonal output to");
|
DEFINE_string(benchmark_out, "", "The file to write additional output to");
|
||||||
|
|
||||||
DEFINE_string(benchmark_color, "auto",
|
DEFINE_string(benchmark_color, "auto",
|
||||||
"Whether to use colors in the output. Valid values: "
|
"Whether to use colors in the output. Valid values: "
|
||||||
@ -503,7 +503,7 @@ void RunBenchmarks(const std::vector<Benchmark::Instance>& benchmarks,
|
|||||||
BenchmarkReporter::Context context;
|
BenchmarkReporter::Context context;
|
||||||
context.name_field_width = name_field_width;
|
context.name_field_width = name_field_width;
|
||||||
|
|
||||||
// Keep track of runing times of all instances of current benchmark
|
// Keep track of running times of all instances of current benchmark
|
||||||
std::vector<BenchmarkReporter::Run> complexity_reports;
|
std::vector<BenchmarkReporter::Run> complexity_reports;
|
||||||
|
|
||||||
// We flush streams after invoking reporter methods that write to them. This
|
// We flush streams after invoking reporter methods that write to them. This
|
||||||
|
@ -65,10 +65,10 @@ std::string GetBigOString(BigO complexity) {
|
|||||||
|
|
||||||
// Find the coefficient for the high-order term in the running time, by
|
// Find the coefficient for the high-order term in the running time, by
|
||||||
// minimizing the sum of squares of relative error, for the fitting curve
|
// minimizing the sum of squares of relative error, for the fitting curve
|
||||||
// given by the lambda expresion.
|
// given by the lambda expression.
|
||||||
// - n : Vector containing the size of the benchmark tests.
|
// - n : Vector containing the size of the benchmark tests.
|
||||||
// - time : Vector containing the times for the benchmark tests.
|
// - time : Vector containing the times for the benchmark tests.
|
||||||
// - fitting_curve : lambda expresion (e.g. [](int n) {return n; };).
|
// - fitting_curve : lambda expression (e.g. [](int n) {return n; };).
|
||||||
|
|
||||||
// For a deeper explanation on the algorithm logic, look the README file at
|
// For a deeper explanation on the algorithm logic, look the README file at
|
||||||
// http://github.com/ismaelJimenez/Minimal-Cpp-Least-Squared-Fit
|
// http://github.com/ismaelJimenez/Minimal-Cpp-Least-Squared-Fit
|
||||||
|
@ -455,7 +455,7 @@ double GetCPUCyclesPerSecond() {
|
|||||||
std::string value;
|
std::string value;
|
||||||
if (SplitIdx != std::string::npos) value = ln.substr(SplitIdx + 1);
|
if (SplitIdx != std::string::npos) value = ln.substr(SplitIdx + 1);
|
||||||
// When parsing the "cpu MHz" and "bogomips" (fallback) entries, we only
|
// When parsing the "cpu MHz" and "bogomips" (fallback) entries, we only
|
||||||
// accept postive values. Some environments (virtual machines) report zero,
|
// accept positive values. Some environments (virtual machines) report zero,
|
||||||
// which would cause infinite looping in WallTime_Init.
|
// which would cause infinite looping in WallTime_Init.
|
||||||
if (startsWithKey(ln, "cpu MHz")) {
|
if (startsWithKey(ln, "cpu MHz")) {
|
||||||
if (!value.empty()) {
|
if (!value.empty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user