json_benchmark
yyjson
json_benchmark | yyjson | |
---|---|---|
2 | 5 | |
20 | 2,893 | |
- | - | |
3.7 | 7.4 | |
9 months ago | 18 days ago | |
Python | C | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
json_benchmark
-
Show HN: Up to 100x Faster FastAPI with simdjson and io_uring on Linux 5.19
If you're primarily targeting Python as an application layer, you may also want to check out my msgspec library[1]. All the perf benefits of e.g. yyjson, but with schema validation like pydantic. It regularly benchmarks[2] as the fastest JSON library for Python. Much of the overhead of decoding JSON -> Python comes from the python layer, and msgspec employs every trick I know to minimize that overhead.
[1]: https://github.com/jcrist/msgspec
[2]: https://github.com/TkTech/json_benchmark
-
Sunday Daily Thread: What's everyone working on this week?
- Adding nvme drive support to SMARTie, https://github.com/tktech/smartie, which is a pure-python cross-platform library for getting disk information like serial number, SMART attributes (like disk temperature) - json_benchmark, https://github.com/tktech/json_benchmark, which is a new benchmark and correctness test for the more modern Python JSON libraries - py_yyjson, https://github.com/tktech/py_yyjson, which is still a WIP and provides Python bindings to the yyjson library, which offers comparable speed to simdjson but more flexibility when parsing (comments, arbitrary sized numbers, Inf/Nan, etc) - And some fixes to https://github.com/TkTech/humanmark, which is a markdown library used to edit the README.md in json_benchmark above.
yyjson
- FLaNK Stack Weekly for 07August2023
- yyjson: A high performance C JSON library
-
Show HN: Up to 100x Faster FastAPI with simdjson and io_uring on Linux 5.19
How does yyjson[0] compare to simdjson? Their benchmarks suggest it could be a positive.
[0] https://github.com/ibireme/yyjson
-
Why is my program segfaulting?
Also I am using these libraries: JSON: https://github.com/ibireme/yyjson Networking: https://curl.se/libcurl/
-
How to parse JSON in C ?
If you need speed, by far yyjson. But it sounds like you probably don't need speed, so the other suggestions are likely better.
What are some alternatives?
japronto - Screaming-fast Python 3.5+ HTTP toolkit integrated with pipelining HTTP server based on uvloop and picohttpparser.
json-c - https://github.com/json-c/json-c is the official code repository for json-c. See the wiki for release tarballs for download. API docs at http://json-c.github.io/json-c/
data-analysis
cJSON - Ultralightweight JSON parser in ANSI C
search-dw - search-dw is a Python utility to automate "search and download" via the command line. It might be useful if you need to download the results of a Google search for a certain type of topic at the same time
JSMN - Jsmn is a world fastest JSON parser/tokenizer. This is the official repo replacing the old one at Bitbucket
json-buffet
parson - Lightweight JSON library written in C.
is2 - embedded RESTy http(s) server library from Edgio
ultrajson - Ultra fast JSON decoder and encoder written in C with Python bindings
jsplit - A Go program to split large JSON files into many jsonl files
gorilla-cli - LLMs for your CLI