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
19026e23
Unverified
Commit
19026e23
authored
Jun 29, 2021
by
Dominic Hamon
Committed by
GitHub
Jun 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix clang-tidy warnings (#1195)
parent
94f845ec
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
benchmark_random_interleaving_gtest.cc
test/benchmark_random_interleaving_gtest.cc
+2
-2
perf_counters_test.cc
test/perf_counters_test.cc
+2
-2
repetitions_test.cc
test/repetitions_test.cc
+2
-2
No files found.
test/benchmark_random_interleaving_gtest.cc
View file @
19026e23
...
...
@@ -34,7 +34,7 @@ class EventQueue : public std::queue<std::string> {
}
};
static
EventQueue
*
queue
=
new
EventQueue
;
EventQueue
*
queue
=
new
EventQueue
()
;
class
NullReporter
:
public
BenchmarkReporter
{
public
:
...
...
@@ -60,7 +60,7 @@ class BenchmarkTest : public testing::Test {
}
};
static
void
BM_Match1
(
benchmark
::
State
&
state
)
{
void
BM_Match1
(
benchmark
::
State
&
state
)
{
const
int64_t
arg
=
state
.
range
(
0
);
for
(
auto
_
:
state
)
{
...
...
test/perf_counters_test.cc
View file @
19026e23
...
...
@@ -5,7 +5,7 @@
#include "benchmark/benchmark.h"
#include "output_test.h"
void
BM_Simple
(
benchmark
::
State
&
state
)
{
static
void
BM_Simple
(
benchmark
::
State
&
state
)
{
for
(
auto
_
:
state
)
{
benchmark
::
DoNotOptimize
(
state
.
iterations
());
}
...
...
@@ -13,7 +13,7 @@ void BM_Simple(benchmark::State& state) {
BENCHMARK
(
BM_Simple
);
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_Simple
\"
,$"
}});
void
CheckSimple
(
Results
const
&
e
)
{
static
void
CheckSimple
(
Results
const
&
e
)
{
CHECK_COUNTER_VALUE
(
e
,
double
,
"CYCLES"
,
GT
,
0
);
CHECK_COUNTER_VALUE
(
e
,
double
,
"BRANCHES"
,
GT
,
0.0
);
}
...
...
test/repetitions_test.cc
View file @
19026e23
...
...
@@ -6,7 +6,7 @@
// ------------------------ Testing Basic Output --------------------------- //
// ========================================================================= //
void
BM_ExplicitRepetitions
(
benchmark
::
State
&
state
)
{
static
void
BM_ExplicitRepetitions
(
benchmark
::
State
&
state
)
{
for
(
auto
_
:
state
)
{
}
}
...
...
@@ -105,7 +105,7 @@ ADD_CASES(TC_CSVOut,
// ------------------------ Testing Basic Output --------------------------- //
// ========================================================================= //
void
BM_ImplicitRepetitions
(
benchmark
::
State
&
state
)
{
static
void
BM_ImplicitRepetitions
(
benchmark
::
State
&
state
)
{
for
(
auto
_
:
state
)
{
}
}
...
...
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