json_benchmark
ucall
json_benchmark | ucall | |
---|---|---|
2 | 13 | |
20 | 1,033 | |
- | 5.7% | |
3.7 | 6.4 | |
8 months ago | 3 days ago | |
Python | C | |
- | Apache License 2.0 |
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.
ucall
- Show HN: U)Search Images demo in 200 lines of Python
-
Faster JSON-RPC on Linux kernel 5.19+ with io_uring and simdjson
Type checking was included, and union support is trivial to add. We have just added a feature request and will release it in a few days.
- FLiP Stack Weekly for 13 March 2023
-
Show HN: Up to 100x Faster FastAPI with simdjson and io_uring on Linux 5.19
You are right! For the convenience of Python users, we have to introspect the messages and parse JSON into Python objects. Every member of every dictionary being allocated on heap.
To make it as fast as possible we don't use PyBind, NanoBind, SWIG, or any high-level tooling. Our Python bindings are a pure CPython integration. There is just no way to beat that combo, not that I know.
https://github.com/unum-cloud/ujrpc/blob/main/src/python.c
-
Lightweight RPC with `simdjson` and `io_uring` on Linux 5.19 and newer
TLDR: UJRPC reaches 230K TCP/IP round-trips per second on 1 socket. Faster than gRPC and much faster than FastAPI.
- Up to 100x Faster FastAPI with simdjson and io_uring on Linux 5.19+
What are some alternatives?
japronto - Screaming-fast Python 3.5+ HTTP toolkit integrated with pipelining HTTP server based on uvloop and picohttpparser.
frontman - Frontman is an open-source API gateway written in Go that allows you to manage your microservices and expose them as a single API endpoint. It acts as a reverse proxy and handles requests from clients, routing them to the appropriate backend service.
data-analysis
msgspec - A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML
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
json-buffet
simdjson - Parsing gigabytes of JSON per second : used by Facebook/Meta Velox, the Node.js runtime, ClickHouse, WatermelonDB, Apache Doris, Milvus, StarRocks
is2 - embedded RESTy http(s) server library from Edgio
FrameworkBenchmarks - Source for the TechEmpower Framework Benchmarks project
jsplit - A Go program to split large JSON files into many jsonl files
Muonbase - Document Database