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

nlohmann / json / 1723 / 5
100%
develop: 99%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/github/codeql-action-4.36.0
DEFAULT BRANCH: develop
Ran 28 Feb 2017 03:38PM UTC
Files 1
Run time 0s
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

28 Feb 2017 03:28PM UTC coverage: 99.895% (-0.07%) from 99.965%
COMPILER=g++-4.9 SPECIAL=coveralls

push

travis-ci

nlohmann
:zap: micro-optimization of dump()

A lot of small changes to avoid memory allocations:

- The locale is only queried once rather than with every number
serialization.
- The indentation string is recycled between different calls.
- The string escape function avoids a copy if no escaping is necessary.
- The string escape and the space function use a complete switch case
instead of cascaded ifs.

Cachegrind measures some 15% performance improvement.

2863 of 2866 relevant lines covered (99.9%)

2349798.78 hits per line

Source Files on job 1723.5 (COMPILER=g++-4.9 SPECIAL=coveralls)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1723
  • Travis Job 1723.5
  • 224f9907 on github
  • Prev Job for COMPILER=g++-4.9 SPECIAL=coveralls on feature/serialization_class (#1722.5)
  • Next Job for COMPILER=g++-4.9 SPECIAL=coveralls on feature/serialization_class (#1724.5)
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