JSON serialization libraries comparison. GSON vs Jackson

  1. GSON generate into a string
  2. GSON generates into a StreamWriter.
  3. Jackson generates into a string.
  4. Jackson generates into an OutputStream.
  1. GSON2String
    Total Time: 20.784.280.357 nanoseconds.
    Memory consumption is around 160MB a lot of GCs. You can see it on the JVisualVM screenshot.

--

--

--

A certified software engineer with 10+ years of java experience

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Algorithm Series: Big O Notation in x minutes

BLOG POST 302

A Fortnight of Flutter

10 JavaScript Promise Challenges Before You Start an Interview

Top 3 Most Popular Nodejs Frameworks

Git Basics: Renaming a Local and Remote Branch

Quick Tips: creating simple accordion with React hooks

How to Pass Props to Components

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Khurelkhuyag M.

Khurelkhuyag M.

A certified software engineer with 10+ years of java experience

More from Medium

Deep dive into Pattern Matching for Java

A Dive in Object Oriented Programming(OOP)

How to import ESLint issues into SonarQube overview analysis in a frontend application

Is String Objects in Java are Immutable?