1 Mar
2024
1 Mar
'24
8:15 a.m.
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.