Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
benchmark
Commits
69a52cff
Commit
69a52cff
authored
Mar 06, 2018
by
Wink Saville
Committed by
Dominic Hamon
Mar 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spelling fixes (#543)
Upstream spelling fix changes from Pony, ec47ba8f565726414552f4bbf97d7, by ka7@la-evento.com that effected google/benchmark.
parent
47df49e5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
.ycm_extra_conf.py
.ycm_extra_conf.py
+1
-1
benchmark.cc
src/benchmark.cc
+2
-2
complexity.cc
src/complexity.cc
+2
-2
sysinfo.cc
src/sysinfo.cc
+1
-1
No files found.
.ycm_extra_conf.py
View file @
69a52cff
...
@@ -7,7 +7,7 @@ import ycm_core
...
@@ -7,7 +7,7 @@ import ycm_core
flags
=
[
flags
=
[
'-Wall'
,
'-Wall'
,
'-Werror'
,
'-Werror'
,
'-pe
n
dantic-errors'
,
'-pedantic-errors'
,
'-std=c++0x'
,
'-std=c++0x'
,
'-fno-strict-aliasing'
,
'-fno-strict-aliasing'
,
'-O3'
,
'-O3'
,
...
...
src/benchmark.cc
View file @
69a52cff
...
@@ -84,7 +84,7 @@ DEFINE_string(benchmark_out_format, "json",
...
@@ -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 addit
i
onal 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,
...
@@ -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 run
n
ing 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
...
...
src/complexity.cc
View file @
69a52cff
...
@@ -65,10 +65,10 @@ std::string GetBigOString(BigO complexity) {
...
@@ -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 expres
s
ion.
// - 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 expres
s
ion (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
...
...
src/sysinfo.cc
View file @
69a52cff
...
@@ -455,7 +455,7 @@ double GetCPUCyclesPerSecond() {
...
@@ -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 pos
i
tive 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
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment