Coder Social home page Coder Social logo

chrisgleissner / java-json-benchmark Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fabienrenaud/java-json-benchmark

0.0 1.0 0.0 384 KB

Performance testing of serialization and deserialization of Java JSON libraries

License: MIT License

Shell 1.20% Java 97.30% Python 1.05% Makefile 0.12% PowerShell 0.33%

java-json-benchmark's Introduction

Build Status

Benchmark of Java JSON libraries

Purpose

This project benchmarks the throughput performance of a variety of Java Json libraries using JMH. It covers the following libraries:

Changes of this fork

The project is a fork of https://github.com/fabienrenaud/java-json-benchmark with the following changes:

  • Updated versions of aforementioned frameworks
  • Removed jsoniter references which no longer successfully test under JDK 11

Results

The benchmarks are written with JMH and for Java 11.

The results here-below were computed on 15 January 2020 with the following libraries and versions, using Amazon Corretto JDK 11.0.5 on a Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz and a 2GB heap.

Framworks tested:

Library Version
jackson 2.10.1
yasson 1.0.5

Serialization

./run ser --apis databind --libs yasson,jackson --datatype users

Benchmark                           Mode  Cnt       Score       Error  Units
Serialization.jackson              thrpt   20  779908.289 ± 30329.126  ops/s
Serialization.jackson_afterburner  thrpt   20  808370.633 ± 44998.978  ops/s
Serialization.yasson               thrpt   20  366559.302 ±  7086.764  ops/s

Deserialization

./run deser --apis databind --libs yasson,jackson --datatype users

Benchmark                             Mode  Cnt       Score       Error  Units
Deserialization.jackson              thrpt   20  492959.325 ±  9840.536  ops/s
Deserialization.jackson_afterburner  thrpt   20  566521.215 ± 26231.949  ops/s
Deserialization.yasson               thrpt   20  129832.861 ±  6710.096  ops/s

java-json-benchmark's People

Contributors

brcolow avatar cg-exp avatar chrisgleissner avatar fabienrenaud avatar javadev avatar saguinav avatar zapov avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.