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

Grauniad / FixedJSONParserCPP / 126 / 1
93%
master: 93%

Build:
DEFAULT BRANCH: master
Ran 24 Mar 2018 11:45PM UTC
Files 9
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

24 Mar 2018 11:39PM UTC coverage: 92.899% (-0.2%) from 93.095%
126.1

push

travis-ci

web-flow
Performance enhancements to the JSON Parser

* Performance enhancements to the JSON Parser

Various performance enhancements have been made to the parsing of
 JSON objects (although further work is required to handle arrays of
 embedded objects)

  - When handling embedded objects keep a pointer to the current depth.
    This prevents the need to recurse through each layer's JSON object
  - Faster key lookup (avoid use of std::map)
  - New benchmark binaries compare performance against the native
    rapid-json DOM

The Library will now outperform (~25%) the rapidJSON dom for simple objects
(see example_dom), but is still significantly slower (~40%) when there are
several layers of embedded objects (see glossary_dom). The biggest cost
here is our Reset() - but further investigation would be required to
close the gap. It is worth noting that glossary_dom is comprised
entirely of strings, meaning we do not currently gain anything from our
pre-allocated memory (each field must be strcpy'd onto the heap...)

Improving arrays of objects requires further work. The issue is that
each new object added to the array require a new JSON object to be
allocated and initialised. This is crippling for performance.

785 of 845 relevant lines covered (92.9%)

95.22 hits per line

Source Files on job 126.1
  • Tree
  • List 0
  • Changed 4
  • Source Changed 3
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1
  • Travis Job 126.1
  • 2b46453f on github
  • Prev Job for on master (#116.1)
  • Next Job for on master (#131.1)
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