Skip to content

update go.mod

Choose a tag to compare

@GenshIv GenshIv released this 25 Jun 16:41
f74b6df

This release introduces massive performance breakthroughs, completely rewriting the foundational scanning architecture and cementing silentjson as the fastest JSON parser in the Go ecosystem.
🔥 Key Highlights:

  • AVX2 Bitmask Iterator (Tape-Scanner): Replaced scalar byte-by-byte loops with simdjson-style vectorization (VPMOVMSKB + BSFL). Structural characters are now processed in 32-byte chunks, allowing the parser to leap directly to relevant bytes.
  • Unsafe Key Parsing: Eliminated bounds-checking overhead in key parsing by utilizing direct unsafe.Pointer memory casting via optimized switch statements.
  • Extreme Throughput: Single-core parsing (UnmarshalSlice) now reaches ~747 MB/s. Multi-core parallel parsing (UnmarshalArrayParallel) shatters previous records, scaling perfectly to ~3347 MB/s!
  • Expanded Test Coverage: Added deep error-handling tests and extensive nested structure validations.
    🚀 Benchmarks (100k complex objects):
  • SilentJSON (Parallel): 3347 MB/s
  • Sonic: 467 MB/s
  • simdjson-go: 371 MB/s
  • Standard encoding/json: 107 MB/s