sonic VS sonnet

Compare sonic vs sonnet and see what are their differences.

sonic

A blazingly fast JSON serializing & deserializing library (by bytedance)

sonnet

High performance JSON decoder in Go (by sugawarayuuta)
Our great sponsors
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • Onboard AI - Learn any GitHub repo in 59 seconds
  • SaaSHub - Software Alternatives and Reviews
sonic sonnet
21 6
5,769 266
3.3% -
6.3 10.0
12 days ago 2 months ago
Go Go
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.

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 2023-11-06.

sonnet

Posts with mentions or reviews of sonnet. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-29.
  • The latest JSON encode/decode benchmarks and analysis!
    3 projects | /r/golang | 29 Sep 2023
    Disclaimer, I am the author of one of the libraries: sonnet. Although I tried it to make fair as possible, It might not be perfect for that perspective. Before getting into the performance of all, let me talk about the correctness.
  • My fast JSON library in Go is now even faster and safer
    3 projects | news.ycombinator.com | 20 Sep 2023
  • Modification of json string without deserialisation into map/struct
    3 projects | /r/golang | 5 Jun 2023
    github.com/sugawarayuuta/sonnet
  • Toward the Fastest, Compatible JSON Decoder – Sonnet
    2 projects | news.ycombinator.com | 11 Feb 2023
    Good morning.I hope this is not the wrong place to post… so let me introduce my first public Golang package. This is a JSON decoder called Sonnet ( https://github.com/sugawarayuuta/sonnet ) that has given faster results (at least in my environment) than Sonic - https://github.com/bytedance/sonic (which is said that it's the fastest) without the help of assembly!

    JSON is a very well-known file format. It is used by everyone who does programming. However, it is also not uncommon to find problems with encoding/json and other third-party libraries. for more… (see https://github.com/sugawarayuuta/sonnet#problems-we-had )

    I decided to create a new, standard library-compatible decoder that would be both easy to use and fast.

    Thanks for reading, feel free to use, help, or ask questions, I look forward to hearing from you. All benchmarks and other information can be found in the link at the top.

  • Toward the Fastest, Compatible JSON Decoder - Sonnet
    3 projects | /r/golang | 11 Feb 2023
    Good morning. Let me introduce my first public Go package. This is a JSON decoder called Sonnet ( https://github.com/sugawarayuuta/sonnet ) that has given faster results (at least in my environment) than Sonic (which is said that it's the fastest) without the help of assembly!

What are some alternatives?

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

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

fastjson - Fast JSON parser and validator for Go. No custom structs, no code generation, no reflection

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

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

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

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

haxmap - Fastest and most memory efficient golang concurrent hashmap

avo - Generate x86 Assembly with Go

xxHash - Pure Go implementation of xxHash (32 and 64 bits versions)

jx - json encoding and decoding

jingo - This package provides the ability to encode golang structs to a buffer as JSON very quickly.

json - Experimental implementation of a proposed v2 encoding/json package