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
266b3bd6
Commit
266b3bd6
authored
May 23, 2016
by
Ismael
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed color and remove iterations
parent
43ef1744
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
11 deletions
+25
-11
console_reporter.cc
src/console_reporter.cc
+3
-2
csv_reporter.cc
src/csv_reporter.cc
+12
-2
json_reporter.cc
src/json_reporter.cc
+10
-7
No files found.
src/console_reporter.cc
View file @
266b3bd6
...
...
@@ -112,7 +112,7 @@ void ConsoleReporter::PrintRunData(const Run& result) {
const
char
*
timeLabel
;
std
::
tie
(
timeLabel
,
multiplier
)
=
GetTimeUnitAndMultiplier
(
result
.
time_unit
);
ColorPrintf
(
COLOR_GREEN
,
"%-*s "
,
ColorPrintf
(
(
result
.
report_big_o
||
result
.
report_rms
)
?
COLOR_BLUE
:
COLOR_GREEN
,
"%-*s "
,
name_field_width_
,
result
.
benchmark_name
.
c_str
());
if
(
result
.
report_big_o
)
{
...
...
@@ -146,7 +146,8 @@ void ConsoleReporter::PrintRunData(const Run& result) {
timeLabel
);
}
ColorPrintf
(
COLOR_CYAN
,
"%10lld"
,
result
.
iterations
);
if
(
!
result
.
report_big_o
&&
!
result
.
report_rms
)
ColorPrintf
(
COLOR_CYAN
,
"%10lld"
,
result
.
iterations
);
if
(
!
rate
.
empty
())
{
ColorPrintf
(
COLOR_DEFAULT
,
" %*s"
,
13
,
rate
.
c_str
());
...
...
src/csv_reporter.cc
View file @
266b3bd6
...
...
@@ -99,10 +99,20 @@ void CSVReporter::PrintRunData(const Run & run) {
ReplaceAll
(
&
name
,
"
\"
"
,
"
\"\"
"
);
std
::
cout
<<
"
\"
"
<<
name
<<
"
\"
,"
;
std
::
cout
<<
run
.
iterations
<<
","
;
// Do not print iteration on bigO and RMS report
if
(
!
run
.
report_big_o
&&
!
run
.
report_rms
)
std
::
cout
<<
run
.
iterations
<<
","
;
else
std
::
cout
<<
","
;
std
::
cout
<<
real_time
<<
","
;
std
::
cout
<<
cpu_time
<<
","
;
std
::
cout
<<
timeLabel
<<
","
;
// Do not print timeLabel on RMS report
if
(
!
run
.
report_rms
)
std
::
cout
<<
timeLabel
<<
","
;
else
std
::
cout
<<
","
;
if
(
run
.
bytes_per_second
>
0.0
)
{
std
::
cout
<<
run
.
bytes_per_second
;
...
...
src/json_reporter.cc
View file @
266b3bd6
...
...
@@ -162,17 +162,20 @@ void JSONReporter::PrintRunData(Run const& run) {
out
<<
indent
<<
FormatKV
(
"name"
,
run
.
benchmark_name
)
<<
",
\n
"
;
out
<<
indent
<<
FormatKV
(
"iterations"
,
run
.
iterations
)
<<
",
\n
"
;
if
(
!
run
.
report_big_o
&&
!
run
.
report_rms
)
{
out
<<
indent
<<
FormatKV
(
"iterations"
,
run
.
iterations
)
<<
",
\n
"
;
}
out
<<
indent
<<
FormatKV
(
"real_time"
,
RoundDouble
(
real_time
))
<<
",
\n
"
;
out
<<
indent
<<
FormatKV
(
"cpu_time"
,
RoundDouble
(
cpu_time
))
<<
",
\n
"
;
out
<<
indent
<<
FormatKV
(
"time_unit"
,
timeLabel
);
<<
FormatKV
(
"cpu_time"
,
RoundDouble
(
cpu_time
));
if
(
!
run
.
report_rms
)
{
out
<<
",
\n
"
<<
indent
<<
FormatKV
(
"time_unit"
,
timeLabel
);
}
if
(
run
.
bytes_per_second
>
0.0
)
{
out
<<
",
\n
"
<<
indent
<<
FormatKV
(
"bytes_per_second"
,
RoundDouble
(
run
.
bytes_per_second
));
...
...
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