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

google / benchmark / 1754
92%

Build:
DEFAULT BRANCH: master
Ran 29 Aug 2018 06:15PM UTC
Jobs 1
Files 36
Run time 5s
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
1754

push

travis-ci

web-flow
Counter(): add 'one thousand' param. (#657)

* Counter(): add 'one thousand' param.

Needed for https://github.com/google/benchmark/pull/654

Custom user counters are quite custom. It is not guaranteed
that the user *always* expects for these to have 1k == 1000.
If the counter represents bytes/memory/etc, 1k should be 1024.

Some bikeshedding points:
1. Is this sufficient, or do we really want to go full on
   into custom types with names?
   I think just the '1000' is sufficient for now.
2. Should there be a helper benchmark::Counter::Counter{1000,1024}()
   static 'constructor' functions, since these two, by far,
   will be the most used?
3. In the future, we should be somehow encoding this info into JSON.

* Counter(): use std::pair<> to represent 'one thousand'

* Counter(): just use a new enum with two values 1000 vs 1024.

Simpler is better. If someone comes up with a real reason
to need something more advanced, it can be added later on.

* Counter: just store the 1000 or 1024 in the One_K values directly

* Counter: s/One_K/OneK/

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

1538 of 1755 relevant lines covered (87.64%)

4988607.5 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1754.1 (COMPILER=g++ C_COMPILER=gcc BUILD_TYPE=Coverage) 29 Aug 2018 06:15PM UTC 0
87.64
Travis Job 1754.1
Source Files on build 1754
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1754
  • caa2fcb1 on github
  • Prev Build on master (#1749)
  • Next Build on master (#1756)
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