• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

google / benchmark / 1076
92%

Build:
DEFAULT BRANCH: master
Ran 24 Aug 2017 05:15AM UTC
Jobs 1
Files 35
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1076

push

travis-ci

dominichamon
Drop Stat1, refactor statistics to be user-providable, add median. (#428)

* Drop Stat1, refactor statistics to be user-providable, add median.

My main goal was to add median statistic. Since Stat1
calculated the stats incrementally, and did not store
the values themselves, it is was not possible. Thus,
i have replaced Stat1 with simple std::vector<double>,
containing all the values.

Then, i have refactored current mean/stdev to be a
function that is provided with values vector, and
returns the statistic. While there, it seemed to make
sense to deduplicate the code by storing all the
statistics functions in a map, and then simply iterate
over it. And the interface to add new statistics is
intentionally exposed, so they may be added easily.

The notable change is that Iterations are no longer
displayed as 0 for stdev. Is could be changed, but
i'm not sure how to nicely fit that into the API.

Similarly, this dance about sometimes (for some fields,
for some statistics) dividing by run.iterations, and
then multiplying the calculated stastic back is also
dropped, and if you do the math, i fail to see why
it was needed there in the first place.

Since that was the only use of stat.h, it is removed.

* complexity.h: attempt to fix MSVC build

* Update README.md

* Store statistics to compute in a vector, ensures ordering.

* Add a bit more tests for repetitions.

* Partially address review notes.

* Fix gcc build: drop extra ';'

clang, why didn't you warn me?

* Address review comments.

* double() -> 0.0
* early return

104 of 104 new or added lines in 4 files covered. (100.0%)

1403 of 1613 relevant lines covered (86.98%)

3840238.25 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
16
100.0
src/statistics.cc
Jobs
ID Job ID Ran Files Coverage
1 1076.1 (COMPILER=g++ C_COMPILER=gcc BUILD_TYPE=Coverage) 24 Aug 2017 05:15AM UTC 0
86.98
Travis Job 1076.1
Source Files on build 1076
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1076
  • a271c36a on github
  • Prev Build on master (#1073)
  • Next Build on master (#1080)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc