fastjson VS sonic

Compare fastjson vs sonic and see what are their differences.

fastjson

Fast JSON parser and validator for Go. No custom structs, no code generation, no reflection (by valyala)

sonic

A blazingly fast JSON serializing & deserializing library (by bytedance)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
fastjson sonic
18 23
2,162 6,277
- 3.1%
0.0 8.1
2 months ago 8 days ago
Go Assembly
MIT License Apache License 2.0
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.

fastjson

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

sonic

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

What are some alternatives?

When comparing fastjson and sonic you can also consider the following projects:

easyjson - Fast JSON serializer for golang.

jsoniter - Using encoding/json to load parts of a large json document

jsonparser - One of the fastest alternative JSON parser for Go that does not require schema

encoding - Go package containing implementations of efficient encoding, decoding, and validation APIs.

mapslice-json - Go MapSlice for ordered marshal/ unmarshal of maps in JSON

simdjson - Parsing gigabytes of JSON per second : used by Facebook/Meta Velox, the Node.js runtime, ClickHouse, WatermelonDB, Apache Doris, Milvus, StarRocks

jsonic - All you need with JSON

simdjson-go - Golang port of simdjson: parsing gigabytes of JSON per second

go-parameters - :blue_book: Easily parse incoming parameters and values from an HTTP request

json-iterator - Low level iterator on the records inside large JSON file.

jsondiff - Compute the diff between two JSON documents as a series of RFC6902 (JSON Patch) operations

hashmap - A Golang lock-free thread-safe HashMap optimized for fastest read access.