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
2cf277b6
Commit
2cf277b6
authored
Apr 13, 2015
by
Jean-Louis Leroy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Iterations declared as size_t but printf'ed as a long long. Make it a long long.
parent
d49516bc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
reporter.h
include/benchmark/reporter.h
+1
-1
reporter.cc
src/reporter.cc
+1
-1
No files found.
include/benchmark/reporter.h
View file @
2cf277b6
...
@@ -49,7 +49,7 @@ class BenchmarkReporter {
...
@@ -49,7 +49,7 @@ class BenchmarkReporter {
std
::
string
benchmark_name
;
std
::
string
benchmark_name
;
std
::
string
report_label
;
// Empty if not set by benchmark.
std
::
string
report_label
;
// Empty if not set by benchmark.
size
_t
iterations
;
int64
_t
iterations
;
double
real_accumulated_time
;
double
real_accumulated_time
;
double
cpu_accumulated_time
;
double
cpu_accumulated_time
;
...
...
src/reporter.cc
View file @
2cf277b6
...
@@ -33,7 +33,7 @@ void BenchmarkReporter::ComputeStats(
...
@@ -33,7 +33,7 @@ void BenchmarkReporter::ComputeStats(
Stat1_d
items_per_second_stat
;
Stat1_d
items_per_second_stat
;
// All repetitions should be run with the same number of iterations so we
// All repetitions should be run with the same number of iterations so we
// can take this information from the first benchmark.
// can take this information from the first benchmark.
std
::
size
_t
const
run_iterations
=
reports
.
front
().
iterations
;
int64
_t
const
run_iterations
=
reports
.
front
().
iterations
;
// Populate the accumulators.
// Populate the accumulators.
for
(
Run
const
&
run
:
reports
)
{
for
(
Run
const
&
run
:
reports
)
{
...
...
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