orjson VS msgspec

Compare orjson vs msgspec and see what are their differences.

orjson

Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy (by ijl)

msgspec

A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML (by jcrist)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
orjson msgspec
17 31
5,456 1,804
- -
8.3 8.9
about 1 month ago 19 days ago
Python Python
Apache License 2.0 BSD 3-clause "New" or "Revised" License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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

Posts with mentions or reviews of orjson. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-07.

msgspec

Posts with mentions or reviews of msgspec. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-01.

What are some alternatives?

When comparing orjson and msgspec you can also consider the following projects:

ujson

pydantic - Data validation using Python type hints

ormsgpack - Msgpack serialization/deserialization library for Python, written in Rust using PyO3 and rust-msgpack. Reboot of orjson. msgpack.org[Python]

pysimdjson - Python bindings for the simdjson project.

fastapi - FastAPI framework, high performance, easy to learn, fast to code, ready for production

mashumaro - Fast and well tested serialization library

cookiecutter-fastapi-firestore

dacite - Simple creation of data classes from dictionaries.

MessagePack - MessagePack serializer implementation for Java / msgpack.org[Java]

marshmallow - A lightweight library for converting complex objects to and from simple Python datatypes.

compare-go-json - A comparison of several go JSON packages.