Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2024-03-01 08:15:21


Zach Laine wrote:
> > > I'm not sure what the tests reported earlier were doing, but I
> > > definitely don't see orders of magnitude difference.
> >
> > I used this file:
> >
> > https://github.com/boostorg/json/blob/develop/bench/data/twitter.json
>
> Using that file, I get similar results to what I already posted (the numbers are
> different, but the ratios between them are the same).
>
> I managed to make a change that was much smaller -- no template parameter
> required. I consistenty see 1.5x slowdown for Parser vs.
> Boost.JSON for files around this size, and 2x or so for much larger files
> (~25MB).

That's probably because you are measuring I/O in addition to parsing.

https://github.com/cmazakas/parser-review/blob/main/test/json.cpp

only measures the parsing part.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk