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
3347a20e
Commit
3347a20e
authored
Aug 01, 2017
by
Roman Lebedev
Committed by
Eric
Jul 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reporter_output_test: json: iterations is int, not float (#431)
May be relevant for flakiness of win builds Noted by @KindDragon
parent
abafced9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
15 deletions
+15
-15
reporter_output_test.cc
test/reporter_output_test.cc
+4
-4
user_counters_tabular_test.cc
test/user_counters_tabular_test.cc
+5
-5
user_counters_test.cc
test/user_counters_test.cc
+6
-6
No files found.
test/reporter_output_test.cc
View file @
3347a20e
...
@@ -27,7 +27,7 @@ BENCHMARK(BM_basic);
...
@@ -27,7 +27,7 @@ BENCHMARK(BM_basic);
ADD_CASES
(
TC_ConsoleOut
,
{{
"^BM_basic %console_report$"
}});
ADD_CASES
(
TC_ConsoleOut
,
{{
"^BM_basic %console_report$"
}});
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_basic
\"
,$"
},
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_basic
\"
,$"
},
{
"
\"
iterations
\"
: %
floa
t,$"
,
MR_Next
},
{
"
\"
iterations
\"
: %
in
t,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
$"
,
MR_Next
},
...
@@ -48,7 +48,7 @@ BENCHMARK(BM_bytes_per_second);
...
@@ -48,7 +48,7 @@ BENCHMARK(BM_bytes_per_second);
ADD_CASES
(
TC_ConsoleOut
,
ADD_CASES
(
TC_ConsoleOut
,
{{
"^BM_bytes_per_second %console_report +%floatB/s$"
}});
{{
"^BM_bytes_per_second %console_report +%floatB/s$"
}});
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_bytes_per_second
\"
,$"
},
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_bytes_per_second
\"
,$"
},
{
"
\"
iterations
\"
: %
floa
t,$"
,
MR_Next
},
{
"
\"
iterations
\"
: %
in
t,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
MR_Next
},
...
@@ -70,7 +70,7 @@ BENCHMARK(BM_items_per_second);
...
@@ -70,7 +70,7 @@ BENCHMARK(BM_items_per_second);
ADD_CASES
(
TC_ConsoleOut
,
ADD_CASES
(
TC_ConsoleOut
,
{{
"^BM_items_per_second %console_report +%float items/s$"
}});
{{
"^BM_items_per_second %console_report +%float items/s$"
}});
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_items_per_second
\"
,$"
},
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_items_per_second
\"
,$"
},
{
"
\"
iterations
\"
: %
floa
t,$"
,
MR_Next
},
{
"
\"
iterations
\"
: %
in
t,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
MR_Next
},
...
@@ -91,7 +91,7 @@ BENCHMARK(BM_label);
...
@@ -91,7 +91,7 @@ BENCHMARK(BM_label);
ADD_CASES
(
TC_ConsoleOut
,
{{
"^BM_label %console_report some label$"
}});
ADD_CASES
(
TC_ConsoleOut
,
{{
"^BM_label %console_report some label$"
}});
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_label
\"
,$"
},
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_label
\"
,$"
},
{
"
\"
iterations
\"
: %
floa
t,$"
,
MR_Next
},
{
"
\"
iterations
\"
: %
in
t,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
MR_Next
},
...
...
test/user_counters_tabular_test.cc
View file @
3347a20e
...
@@ -68,7 +68,7 @@ void BM_Counters_Tabular(benchmark::State& state) {
...
@@ -68,7 +68,7 @@ void BM_Counters_Tabular(benchmark::State& state) {
}
}
BENCHMARK
(
BM_Counters_Tabular
)
->
ThreadRange
(
1
,
16
);
BENCHMARK
(
BM_Counters_Tabular
)
->
ThreadRange
(
1
,
16
);
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_Counters_Tabular/threads:%int
\"
,$"
},
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_Counters_Tabular/threads:%int
\"
,$"
},
{
"
\"
iterations
\"
: %
floa
t,$"
,
MR_Next
},
{
"
\"
iterations
\"
: %
in
t,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
MR_Next
},
...
@@ -112,7 +112,7 @@ void BM_CounterRates_Tabular(benchmark::State& state) {
...
@@ -112,7 +112,7 @@ void BM_CounterRates_Tabular(benchmark::State& state) {
}
}
BENCHMARK
(
BM_CounterRates_Tabular
)
->
ThreadRange
(
1
,
16
);
BENCHMARK
(
BM_CounterRates_Tabular
)
->
ThreadRange
(
1
,
16
);
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_CounterRates_Tabular/threads:%int
\"
,$"
},
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_CounterRates_Tabular/threads:%int
\"
,$"
},
{
"
\"
iterations
\"
: %
floa
t,$"
,
MR_Next
},
{
"
\"
iterations
\"
: %
in
t,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
MR_Next
},
...
@@ -156,7 +156,7 @@ void BM_CounterSet0_Tabular(benchmark::State& state) {
...
@@ -156,7 +156,7 @@ void BM_CounterSet0_Tabular(benchmark::State& state) {
}
}
BENCHMARK
(
BM_CounterSet0_Tabular
)
->
ThreadRange
(
1
,
16
);
BENCHMARK
(
BM_CounterSet0_Tabular
)
->
ThreadRange
(
1
,
16
);
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_CounterSet0_Tabular/threads:%int
\"
,$"
},
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_CounterSet0_Tabular/threads:%int
\"
,$"
},
{
"
\"
iterations
\"
: %
floa
t,$"
,
MR_Next
},
{
"
\"
iterations
\"
: %
in
t,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
MR_Next
},
...
@@ -188,7 +188,7 @@ void BM_CounterSet1_Tabular(benchmark::State& state) {
...
@@ -188,7 +188,7 @@ void BM_CounterSet1_Tabular(benchmark::State& state) {
}
}
BENCHMARK
(
BM_CounterSet1_Tabular
)
->
ThreadRange
(
1
,
16
);
BENCHMARK
(
BM_CounterSet1_Tabular
)
->
ThreadRange
(
1
,
16
);
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_CounterSet1_Tabular/threads:%int
\"
,$"
},
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_CounterSet1_Tabular/threads:%int
\"
,$"
},
{
"
\"
iterations
\"
: %
floa
t,$"
,
MR_Next
},
{
"
\"
iterations
\"
: %
in
t,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
MR_Next
},
...
@@ -224,7 +224,7 @@ void BM_CounterSet2_Tabular(benchmark::State& state) {
...
@@ -224,7 +224,7 @@ void BM_CounterSet2_Tabular(benchmark::State& state) {
}
}
BENCHMARK
(
BM_CounterSet2_Tabular
)
->
ThreadRange
(
1
,
16
);
BENCHMARK
(
BM_CounterSet2_Tabular
)
->
ThreadRange
(
1
,
16
);
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_CounterSet2_Tabular/threads:%int
\"
,$"
},
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_CounterSet2_Tabular/threads:%int
\"
,$"
},
{
"
\"
iterations
\"
: %
floa
t,$"
,
MR_Next
},
{
"
\"
iterations
\"
: %
in
t,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
MR_Next
},
...
...
test/user_counters_test.cc
View file @
3347a20e
...
@@ -27,7 +27,7 @@ void BM_Counters_Simple(benchmark::State& state) {
...
@@ -27,7 +27,7 @@ void BM_Counters_Simple(benchmark::State& state) {
BENCHMARK
(
BM_Counters_Simple
);
BENCHMARK
(
BM_Counters_Simple
);
ADD_CASES
(
TC_ConsoleOut
,
{{
"^BM_Counters_Simple %console_report bar=%hrfloat foo=%hrfloat$"
}});
ADD_CASES
(
TC_ConsoleOut
,
{{
"^BM_Counters_Simple %console_report bar=%hrfloat foo=%hrfloat$"
}});
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_Counters_Simple
\"
,$"
},
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_Counters_Simple
\"
,$"
},
{
"
\"
iterations
\"
: %
floa
t,$"
,
MR_Next
},
{
"
\"
iterations
\"
: %
in
t,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
MR_Next
},
...
@@ -63,7 +63,7 @@ ADD_CASES(TC_ConsoleOut,
...
@@ -63,7 +63,7 @@ ADD_CASES(TC_ConsoleOut,
{{
"^BM_Counters_WithBytesAndItemsPSec %console_report "
{{
"^BM_Counters_WithBytesAndItemsPSec %console_report "
"bar=%hrfloat foo=%hrfloat +%hrfloatB/s +%hrfloat items/s$"
}});
"bar=%hrfloat foo=%hrfloat +%hrfloatB/s +%hrfloat items/s$"
}});
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_Counters_WithBytesAndItemsPSec
\"
,$"
},
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_Counters_WithBytesAndItemsPSec
\"
,$"
},
{
"
\"
iterations
\"
: %
floa
t,$"
,
MR_Next
},
{
"
\"
iterations
\"
: %
in
t,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
MR_Next
},
...
@@ -101,7 +101,7 @@ void BM_Counters_Rate(benchmark::State& state) {
...
@@ -101,7 +101,7 @@ void BM_Counters_Rate(benchmark::State& state) {
BENCHMARK
(
BM_Counters_Rate
);
BENCHMARK
(
BM_Counters_Rate
);
ADD_CASES
(
TC_ConsoleOut
,
{{
"^BM_Counters_Rate %console_report bar=%hrfloat/s foo=%hrfloat/s$"
}});
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
\"
: %
floa
t,$"
,
MR_Next
},
{
"
\"
iterations
\"
: %
in
t,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
MR_Next
},
...
@@ -132,7 +132,7 @@ void BM_Counters_Threads(benchmark::State& state) {
...
@@ -132,7 +132,7 @@ void BM_Counters_Threads(benchmark::State& state) {
BENCHMARK
(
BM_Counters_Threads
)
->
ThreadRange
(
1
,
8
);
BENCHMARK
(
BM_Counters_Threads
)
->
ThreadRange
(
1
,
8
);
ADD_CASES
(
TC_ConsoleOut
,
{{
"^BM_Counters_Threads/threads:%int %console_report bar=%hrfloat foo=%hrfloat$"
}});
ADD_CASES
(
TC_ConsoleOut
,
{{
"^BM_Counters_Threads/threads:%int %console_report bar=%hrfloat foo=%hrfloat$"
}});
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_Counters_Threads/threads:%int
\"
,$"
},
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_Counters_Threads/threads:%int
\"
,$"
},
{
"
\"
iterations
\"
: %
floa
t,$"
,
MR_Next
},
{
"
\"
iterations
\"
: %
in
t,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
MR_Next
},
...
@@ -162,7 +162,7 @@ void BM_Counters_AvgThreads(benchmark::State& state) {
...
@@ -162,7 +162,7 @@ void BM_Counters_AvgThreads(benchmark::State& state) {
BENCHMARK
(
BM_Counters_AvgThreads
)
->
ThreadRange
(
1
,
8
);
BENCHMARK
(
BM_Counters_AvgThreads
)
->
ThreadRange
(
1
,
8
);
ADD_CASES
(
TC_ConsoleOut
,
{{
"^BM_Counters_AvgThreads/threads:%int %console_report bar=%hrfloat foo=%hrfloat$"
}});
ADD_CASES
(
TC_ConsoleOut
,
{{
"^BM_Counters_AvgThreads/threads:%int %console_report bar=%hrfloat foo=%hrfloat$"
}});
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_Counters_AvgThreads/threads:%int
\"
,$"
},
ADD_CASES
(
TC_JSONOut
,
{{
"
\"
name
\"
:
\"
BM_Counters_AvgThreads/threads:%int
\"
,$"
},
{
"
\"
iterations
\"
: %
floa
t,$"
,
MR_Next
},
{
"
\"
iterations
\"
: %
in
t,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
MR_Next
},
...
@@ -193,7 +193,7 @@ void BM_Counters_AvgThreadsRate(benchmark::State& state) {
...
@@ -193,7 +193,7 @@ void BM_Counters_AvgThreadsRate(benchmark::State& state) {
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/s foo=%hrfloat/s$"
}});
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
\"
: %
floa
t,$"
,
MR_Next
},
{
"
\"
iterations
\"
: %
in
t,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
real_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
cpu_time
\"
: %float,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
MR_Next
},
{
"
\"
time_unit
\"
:
\"
ns
\"
,$"
,
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