Skip to content

Shenker93/jmh-json-comparison-benchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

INSTALLATION

Just use mvn clean install command. You will get benchmarks.jar file in target directory as a result. Just use java -jar target/benchmarks.jar command to start benchmarking.

BENCHMARKING

This benchmark compares some java libraries to serialize and deserialize json. Now Jackson and gson libraries are used. Some simple scenarios are shown, however, it covers basic operations that are used while dealing with json. I hope to create more complex scenarios in future, as well as to add another Java (or even another jvm-based languages like Scala or Kotlin) libraries to this short comparative overview. Also, if you have any ideas or PR's, you are welcome:)

By default, 10 warm-up and measurement iterations are used in benchmarks. However, feel free to change this value to our own. @Warmup and @Measurement annotations are used in StreamComputing class definition to define number of iterations. Also you can change BenchmarkMode

You can also use command-line args to change this settings or specify another (use -h to view full list). Comparing to annotations, command-line args have higher priority.

Some benchmarks are available on travis-ci build page (benchmark is wrapped into junit test, see build icon on the top of readme). However, according to some sources, such results accuracy can be lower, so it's better to use commands from installation block.

About

Some popular java json libraries comparative benchmarks

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages