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
03b0655d
Commit
03b0655d
authored
Apr 29, 2017
by
Joao Paulo Magalhaes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix expected values of user counters as rates in unit tests.
parent
921a51ab
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
user_counters_test.cc
test/user_counters_test.cc
+2
-2
No files found.
test/user_counters_test.cc
View file @
03b0655d
...
@@ -93,7 +93,7 @@ void BM_Counters_Rate(benchmark::State& state) {
...
@@ -93,7 +93,7 @@ void BM_Counters_Rate(benchmark::State& state) {
state
.
counters
[
"bar"
]
=
bm
::
Counter
{
2
,
bm
::
Counter
::
kIsRate
};
state
.
counters
[
"bar"
]
=
bm
::
Counter
{
2
,
bm
::
Counter
::
kIsRate
};
}
}
BENCHMARK
(
BM_Counters_Rate
);
BENCHMARK
(
BM_Counters_Rate
);
ADD_CASES
(
TC_ConsoleOut
,
{{
"^BM_Counters_Rate %console_report bar=%hrfloat
foo=%hrfloat
$"
}});
ADD_CASES
(
TC_ConsoleOut
,
{{
"^BM_Counters_Rate %console_report bar=%hrfloat
/s foo=%hrfloat/s
$"
}});
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_Counters_Rate
\"
,$"
},
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_Counters_Rate
\"
,$"
},
{
"
\"
iterations
\"
: %int,$"
,
MR_Next
},
{
"
\"
iterations
\"
: %int,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %int,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %int,$"
,
MR_Next
},
...
@@ -178,7 +178,7 @@ void BM_Counters_AvgThreadsRate(benchmark::State& state) {
...
@@ -178,7 +178,7 @@ void BM_Counters_AvgThreadsRate(benchmark::State& state) {
state
.
counters
[
"bar"
]
=
bm
::
Counter
{
2
,
bm
::
Counter
::
kAvgThreadsRate
};
state
.
counters
[
"bar"
]
=
bm
::
Counter
{
2
,
bm
::
Counter
::
kAvgThreadsRate
};
}
}
BENCHMARK
(
BM_Counters_AvgThreadsRate
)
->
ThreadRange
(
1
,
8
);
BENCHMARK
(
BM_Counters_AvgThreadsRate
)
->
ThreadRange
(
1
,
8
);
ADD_CASES
(
TC_ConsoleOut
,
{{
"^BM_Counters_AvgThreadsRate/threads:%int %console_report bar=%hrfloat
foo=%hrfloat
$"
}});
ADD_CASES
(
TC_ConsoleOut
,
{{
"^BM_Counters_AvgThreadsRate/threads:%int %console_report bar=%hrfloat
/s foo=%hrfloat/s
$"
}});
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_Counters_AvgThreadsRate/threads:%int
\"
,$"
},
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_Counters_AvgThreadsRate/threads:%int
\"
,$"
},
{
"
\"
iterations
\"
: %int,$"
,
MR_Next
},
{
"
\"
iterations
\"
: %int,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %int,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %int,$"
,
MR_Next
},
...
...
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