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

Grauniad / FixedJSONParserCPP / 117
93%
master: 93%

Build:
Build:
LAST BUILD BRANCH: CommonConfig
DEFAULT BRANCH: master
Ran 24 Mar 2018 09:52PM UTC
Jobs 1
Files 11
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

pending completion
117

push

travis-ci

Grauniad
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.

787 of 936 relevant lines covered (84.08%)

86.25 hits per line

Jobs
ID Job ID Ran Files Coverage
1 117.1 24 Mar 2018 09:52PM UTC 0
84.08
Travis Job 117.1
Source Files on build 117
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #117
  • c222396c on github
  • Next Build on Perform (#118)
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