Updated benchmark results of JSON parsers for Scala - now with results for circe and play-json boosters based on jsoniter-scala.

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/scala

Our great sponsors
  • SonarQube - Static code analysis for 29 languages.
  • Scout APM - Less time debugging, more time building
  • SaaSHub - Software Alternatives and Reviews
  • jsoniter-scala

    Scala macros for compile-time generation of safe and ultra-fast JSON codecs

    Sources of benchmarks are here.

  • µPickle

    uPickle: a simple, fast, dependency-free JSON & Binary (MessagePack) serialization library for Scala

    See here for sample code size numbers (not picking on upickle specifically, it's just what I'm using myself. I've heard similar reports about e.g. circe)

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • weePickle

    A fork of uPickle, shaded for backwards and forwards compatibility.

    The summary would be that jsoniter-scala-core API can speed up AST-based parsers like circe and play-json greatly. But the code generated by jsoniter-scala-macros API is much more efficient, so I'm expecting that some JSON parsers that allow derivation of direct codecs will port or reuse best implementations from jsoniter-scala-core API like here or here.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts