Skip to content

Instantly share code, notes, and snippets.

@andresteingress
Last active August 29, 2015 13:57
Show Gist options
  • Save andresteingress/9588171 to your computer and use it in GitHub Desktop.
Save andresteingress/9588171 to your computer and use it in GitHub Desktop.
Andrey's JSON Benchmark - Results
Benchmark Mode Thr Count Sec Mean Mean error Units
g.j.Benchmark.complexTestBoon thrpt 1 20 1 16050.900 232.105 ops/s
g.j.Benchmark.complexTestGroovy thrpt 1 20 1 1132.776 29.978 ops/s
g.j.Benchmark.complexTestGson thrpt 1 20 1 6149.003 111.183 ops/s
g.j.Benchmark.complexTestJackson thrpt 1 20 1 15056.591 307.194 ops/s
g.j.Benchmark.complexTestNewGroovy thrpt 1 20 1 12886.050 113.192 ops/s
g.j.Benchmark.javaObjectsTestGroovy thrpt 1 20 1 18.706 0.207 ops/s
g.j.Benchmark.javaObjectsTestGson thrpt 1 20 1 188.108 3.821 ops/s
g.j.Benchmark.javaObjectsTestJackson thrpt 1 20 1 353.901 5.103 ops/s
g.j.Benchmark.javaObjectsTestNewGroovy thrpt 1 20 1 202.073 2.509 ops/s
g.j.Benchmark.mediumTestBoon thrpt 1 20 1 336600.613 10039.260 ops/s
g.j.Benchmark.mediumTestGroovy thrpt 1 20 1 11835.815 264.453 ops/s
g.j.Benchmark.mediumTestGson thrpt 1 20 1 105228.442 2732.826 ops/s
g.j.Benchmark.mediumTestJackson thrpt 1 20 1 194211.254 6580.170 ops/s
g.j.Benchmark.mediumTestNewGroovy thrpt 1 20 1 164554.011 1682.295 ops/s
g.j.Benchmark.simpleTestBoon thrpt 1 20 1 1504928.551 40937.842 ops/s
g.j.Benchmark.simpleTestGroovy thrpt 1 20 1 64265.043 1245.347 ops/s
g.j.Benchmark.simpleTestGson thrpt 1 20 1 441196.092 16528.134 ops/s
g.j.Benchmark.simpleTestJackson thrpt 1 20 1 660753.715 5677.094 ops/s
g.j.Benchmark.simpleTestNewGroovy thrpt 1 20 1 702436.852 7905.482 ops/s
@andresteingress
Copy link
Author

javaObjectsTestBoon is missing due to the following JVM crash (3x executed, always crashed the same way):

# Fork: 1 of 1
# Warmup: 20 iterations, 1 s each
# Measurement: 20 iterations, 1 s each
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Running: groovy.json.Benchmark.javaObjectsTestBoon
# Warmup Iteration   1: #
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x000000010b070452, pid=4370, tid=20227
#
# JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# j  org.boon.json.serializers.impl.JsonSimpleSerializerImpl.serializeInstance(Ljava/lang/Object;Lorg/boon/primitive/CharBuf;)V+2
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/andre/Development/Playground/groovy-core/subprojects/json-benchmark/hs_err_pid4370.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
#
Exception in thread "Thread-60" java.lang.IllegalStateException: java.io.EOFException
    at org.openjdk.jmh.link.BinaryLinkServer$Handler.run(BinaryLinkServer.java:245)
Caused by: java.io.EOFException
    at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2598)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1318)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
    at org.openjdk.jmh.link.BinaryLinkServer$Handler.run(BinaryLinkServer.java:225)
WARNING: Forked process returned code: 134
#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment