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

google / benchmark / 1158
92%

Build:
DEFAULT BRANCH: master
Ran 31 Oct 2017 06:02PM UTC
Jobs 1
Files 35
Run time 3s
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
1158

push

travis-ci

dominichamon
 Improve BM_SetInsert example (#465)

* Fix BM_SetInsert example

Move declaration of `std::set<int> data` outside the timing loop, so that the
destructor is not timed.

* Speed up BM_SetInsert test

Since the time taken to ConstructRandomSet() is so large compared to the time
to insert one element, but only the latter is used to determine number of
iterations, this benchmark now takes an extremely long time to run in
benchmark_test.

Speed it up two ways:
  - Increase the Ranges() parameters
  - Cache ConstructRandomSet() result (it's not random anyway), and do only
    O(N) copy every iteration

* Fix same issue in BM_MapLookup test

* Make BM_SetInsert test consistent with README

- Use the same Ranges everywhere, but increase the 2nd range
- Change order of Args() calls in README to more closely match the result of Ranges
- Don't cache ConstructRandomSet, since it doesn't make sense in README
- Get a smaller optimization inside it, by givint a hint to insert()

1415 of 1624 relevant lines covered (87.13%)

4831741.47 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1158.1 (COMPILER=g++ C_COMPILER=gcc BUILD_TYPE=Coverage) 31 Oct 2017 06:02PM UTC 0
87.13
Travis Job 1158.1
Source Files on build 1158
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1158
  • fa341e51 on github
  • Prev Build on master (#1154)
  • Next Build on master (#1162)
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

© 2026 Coveralls, Inc