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
bcf08705
Commit
bcf08705
authored
Jun 04, 2014
by
pleroy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comment.
parent
640dd5a4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
benchmark.cc
src/benchmark.cc
+2
-2
No files found.
src/benchmark.cc
View file @
bcf08705
...
@@ -284,8 +284,8 @@ void ComputeStats(const std::vector<BenchmarkReporter::Run>& reports,
...
@@ -284,8 +284,8 @@ void ComputeStats(const std::vector<BenchmarkReporter::Run>& reports,
stddev_data
->
report_label
=
mean_data
->
report_label
;
stddev_data
->
report_label
=
mean_data
->
report_label
;
stddev_data
->
iterations
=
iterations_stat
.
StdDev
();
stddev_data
->
iterations
=
iterations_stat
.
StdDev
();
// The value of iterations_stat.StdDev() above may be 0 if all the repetitions
// The value of iterations_stat.StdDev() above may be 0 if all the repetitions
// have the same number of iterations. Blindly multiplying by 0
// have the same number of iterations. Blindly multiplying by 0
in the
//
in the
computation of real/cpu_accumulated_time below would lead to 0/0 in
// computation of real/cpu_accumulated_time below would lead to 0/0 in
// PrintRunData. So we skip the multiplication in this case and PrintRunData
// PrintRunData. So we skip the multiplication in this case and PrintRunData
// skips the division.
// skips the division.
if
(
stddev_data
->
iterations
==
0
)
{
if
(
stddev_data
->
iterations
==
0
)
{
...
...
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