orjson
compare-go-json
Our great sponsors
orjson | compare-go-json | |
---|---|---|
17 | 5 | |
5,456 | 18 | |
- | - | |
8.3 | 0.0 | |
about 1 month ago | almost 2 years ago | |
Python | Go | |
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.
orjson
- JSON dans les projets data science : Trucs & Astuces
-
JSON in data science projects: tips & tricks
orjson is the fastest JSON library available for python. It natively manages dataclass objects, datetime, numpy and UUID objects.
- Segunda linguagem
-
Litestar 2.0
As we began venturing down that road, a few things emerged that would constitute significant changes to some of the core parts of Litestar, but there were two things in particular that started a chain reaction of changes by opening up further possibilities: The new DTOs and our switch from orjson to msgspec.
-
Starlite development updates January ’23
In version 1.45.0, we introduced msgspec as our serialization backend, replacing orjson. This had some immediate performance benefits, but that's not the main reason we made the switch.
-
Making Python classes serializable to/from JSON
Doesn't orjson do that already?
-
Processing JSON 2.5x faster than simdjson with msgspec
orjson
-
Benchmarking Python JSON serializers - json vs ujson vs orjson
For most cases, you would want to go with python’s standard json library which removes dependencies on other libraries. On other hand you could try out ujsonwhich is simple replacement for python’s json library. If you want more speed and also want dataclass, datetime, numpy, and UUID instances and you are ready to deal with more complex code, then you can try your hands on orjson
- The fastest tool for querying large JSON files is written in Python (benchmark)
-
BetterJSONStorage - faster 'Storage Type' for TinyDB.
BetterJSONStorage is a faster 'Storage Type' for TinyDB. It uses treading, the faster Orjson library for parsing the JSON and BLOSC2 for compression.
compare-go-json
-
The fastest tool for querying large JSON files is written in Python (benchmark)
For me OjG (https://github.com/ohler55/ojg) has been great. I regularly use it on files that can not be loaded into memory. The best JSON file format for multiple record is one JSON document per record all in the same file. OjG doesn't care if they are on different lines. It is fast (https://github.com/ohler55/compare-go-json) and uses a fairly complete JSONPath implementation for searches. Similar to jq but using JSONPath instead of a proprietary query language.
I am biased though as I wrote OjG to handle what other tools were not able to do.
-
OjG now has a tokenizer that is almost 10 times faster than json.Decode
jsoniter is json-iterator/go. It is the 3rd column at https://github.com/ohler55/compare-go-json
The title says it all. The new tokenizer here https://github.com/ohler55/ojg and the benchmarks and comparison to other JSON packages is here https://github.com/ohler55/compare-go-json.
You'll find some examples in second link that does the benchmark. https://github.com/ohler55/compare-go-json.
What are some alternatives?
ujson
ormsgpack - Msgpack serialization/deserialization library for Python, written in Rust using PyO3 and rust-msgpack. Reboot of orjson. msgpack.org[Python]
msgspec - A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML
pysimdjson - Python bindings for the simdjson project.
jsoniter - A high-performance 100% compatible drop-in replacement of "encoding/json"
cookiecutter-fastapi-firestore
mashumaro - Fast and well tested serialization library
dacite - Simple creation of data classes from dictionaries.
yapic.json - Ultra fast json encode / decode library for Python 3.5+
ultrajson - Ultra fast JSON decoder and encoder written in C with Python bindings
dataclasses-json - Easily serialize Data Classes to and from JSON
desert - Deserialize to objects while staying DRY