Link Details

Link 1139369 thumbnail
User 1189573 avatar

By richigh82
Published: Apr 11 2014 / 15:22

Jackson is consistently faster than GSON and JSONSmart. Boon JSON parser and the new Groovy 2.3 JSON parser are faster than Jackson. They are faster than Jackson with InputStream, Reader, reading files, byte[], and char[] and String. Groovy JSON support and the Boon JSON parser are up to 3x to 5x faster than Jackson at parsing JSON from String and char[], and 2x to 4x faster at parsing byte[].
  • 15
  • 0
  • 1609
  • 1675


Add your comment
User 1189573 avatar

richigh82 replied ago:

0 votes Vote down Vote up Reply

Which is faster serializing to JSON with Jackson or serializing to binary with ObjectOutputStream? Most people assume that Java object serialization is faster than Jackson JSON serialization because Jackson is using JSON and Java object serialization is binary. Is this true? Find out.

User 1189573 avatar

richigh82 replied ago:

0 votes Vote down Vote up Reply

Some independent verification. Groovy 2.3 JSON parser and serializer faster than Jackson Andrey Bloschetsov, one of the commiters on the Groovy 2.3 JSON speedup, just published a benchmark showing Groovy 2.3 JSON parsing speed is faster than Jackson! This is more confirmation that Groovy 2.3 JSON parser is one of the fastest JSON parser and serializers on the JVM. It is even faster than Jackson! Jackson is faster than GSON, and JSONSmart by a wide margin. This puts Groovy 2.3 JSON parser and serializer as one of the fastest ways to parse and serialize JSON on the JVM. It is among the best. The Groovy JSON parser is the fastest of any of the main stream Java JSON parsers (ones with wide distribution). Yes it is fast. Very fast!

Add your comment

Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Java Performance Optimization
Written by: Pierre-Hugues Charbonneau
Featured Refcardz: Top Refcardz:
  1. Design Patterns
  2. OO JS
  3. Cont. Delivery
  4. Java EE7
  5. HTML5 Mobile
  1. Node.js
  2. Debugging JavaScript
  3. OO JS
  4. JSON
  5. Ajax