Serpent7776 avatar

A simple ASCII-only JSON parser

serpent7776

Published: 25 Nov 2022 › Updated: 25 Nov 2022A simple ASCII-only JSON parser

A simple ASCII-only JSON parser

I've written a simple ASCII-only JSON parser in C++, rust, ocaml and standardml.
https://github.com/serpent7776/json-parse

Here's some quick stats:
Non-empty lines of code (including tests), time parsing a single ~90MB JSON, time parsing 13 JSON files of varying sizes, peak heap usage, total bytes allocated.
Note that the code wasn't written with performance in mind.

c++rustocamlsml
lines902604546528
time parsing 1 json [s]1.4760.6831.6372.300
time parsing all jsons [s]5.5602.7356.3267.716
peak heap [MB]589.4388.2317.6N/A
total allocated [B]1,074,494,993598,650,503335,248,296N/A

Leave A simple ASCII-only JSON parser to:

Written by

I like programming languages.

Read more #cplusplus posts


Best Posts From Serpent7776

We have not curated any of serpent7776's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From Serpent7776