Skip to content

Commit bce58c9

Browse files
committed
run 8
1 parent e772c23 commit bce58c9

File tree

3 files changed

+502
-23
lines changed

3 files changed

+502
-23
lines changed

README.md

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -47,33 +47,34 @@ Not evaluated are: RAM utilization, compression, payloads > 1 MB.
4747

4848
The benchmarks are written with [JMH](http://openjdk.java.net/projects/code-tools/jmh/) and for Java 8.
4949

50-
The results here-below were computed on March the 1st, 2020 with the following libraries and versions:
50+
The results here-below were computed on November the 27th, 2021 with the following libraries and versions:
5151

5252
| Library | Version |
5353
|--------------|----------|
54-
| jackson | 2.10.2 |
54+
| jackson | 2.13.0 |
5555
| genson | 1.6 |
56-
| fastjson | 1.2.62 |
57-
| gson | 2.8.6 |
58-
| org.json | 20090211 |
56+
| fastjson | 1.2.78 |
57+
| gson | 2.8.9 |
58+
| org.json | 20210307 |
5959
| javax-json | 1.1.4 |
60-
| json-io | 4.12.0 |
60+
| json-io | 4.13.0 |
6161
| flexjson | 3.3 |
6262
| boon | 0.34 |
63-
| json-smart | 2.3 |
64-
| johnzon | 1.2.3 |
63+
| json-smart | 2.4.7 |
64+
| johnzon | 1.2.15 |
6565
| logansquare | 1.3.7 |
66-
| dsl-json | 1.9.5 |
66+
| dsl-json | 1.9.9 |
6767
| simplejson | 1.1.1 |
68-
| nanojson | 1.4 |
69-
| jodd json | 5.1.3 |
70-
| moshi | 1.9.2 |
71-
| tapestry | 5.4.5 |
68+
| nanojson | 1.7 |
69+
| jodd json | 6.0.3 |
70+
| moshi | 1.12.0 |
71+
| tapestry | 5.7.3 |
7272
| jsoniter | 0.9.23 |
7373
| minimal-json | 0.9.5 |
7474
| mjson | 1.4.1 |
75-
| underscore | 1.52 |
75+
| underscore | 1.71 |
7676
| purejson | 1.0.1 |
77+
| yasson | 1.0.9 |
7778

7879
[All graphs and sheets are available in this google doc.][spreadsheet]
7980

@@ -109,10 +110,11 @@ Tests were run on an [Amazon EC2 c5.xlarge](https://aws.amazon.com/ec2/instance-
109110
JMH info:
110111

111112
```
112-
# JMH version: 1.23
113-
# VM version: JDK 1.8.0_242, OpenJDK 64-Bit Server VM, 25.242-b08
114-
# VM invoker: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.242.b08-0.amzn2.0.1.x86_64/jre/bin/java
113+
# JMH version: 1.33
114+
# VM version: JDK 1.8.0_302, OpenJDK 64-Bit Server VM, 25.302-b08
115+
# VM invoker: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.302.b08-0.amzn2.0.1.x86_64/jre/bin/java
115116
# VM options: -XX:+AggressiveOpts -Xms2g -Xmx2g
117+
# Blackhole mode: full + dont-inline hint (default, use -Djmh.blackhole.autoDetect=true to auto-detect)
116118
# Warmup: 5 iterations, 10 s each
117119
# Measurement: 10 iterations, 3 s each
118120
# Timeout: 10 min per iteration
@@ -156,9 +158,9 @@ find numerous examples in the commit history. For instance:
156158
Pull requests are welcome.
157159

158160

159-
[jmh-results]: /archive/raw-results-2020-03-01.md
160-
[spreadsheet]: https://docs.google.com/spreadsheets/d/14GZ7zbn0sXT3zIgS-2Nv4F9UGdCIrvI4Ctg_vzKbF0Q/edit?usp=sharing
161-
[graph-users-deser]: https://docs.google.com/spreadsheets/d/e/2PACX-1vSRA9tHwuThs4VSvTSaeP3e0XKsthz89oUvYpaDkybhoXbQYP2xOmf9Idtyz8Kmxoxx2grrL-kZYWEY/pubchart?oid=1217359585&format=image
162-
[graph-users-ser]: https://docs.google.com/spreadsheets/d/e/2PACX-1vSRA9tHwuThs4VSvTSaeP3e0XKsthz89oUvYpaDkybhoXbQYP2xOmf9Idtyz8Kmxoxx2grrL-kZYWEY/pubchart?oid=296776676&format=image
163-
[graph-clients-deser]: https://docs.google.com/spreadsheets/d/e/2PACX-1vSRA9tHwuThs4VSvTSaeP3e0XKsthz89oUvYpaDkybhoXbQYP2xOmf9Idtyz8Kmxoxx2grrL-kZYWEY/pubchart?oid=684555912&format=image
164-
[graph-clients-ser]: https://docs.google.com/spreadsheets/d/e/2PACX-1vSRA9tHwuThs4VSvTSaeP3e0XKsthz89oUvYpaDkybhoXbQYP2xOmf9Idtyz8Kmxoxx2grrL-kZYWEY/pubchart?oid=2004244401&format=image
161+
[jmh-results]: /archive/raw-results-2021-11-27.md
162+
[spreadsheet]: https://docs.google.com/spreadsheets/d/18XdXQi7GJmVgWBuo0BAsjbPUHW-qDHge1k4WT8uOEIU/edit?usp=sharing
163+
[graph-users-deser]: https://docs.google.com/spreadsheets/d/e/2PACX-1vSJsmkX9LTVyohgO8R8tZjIxdRCZugLLNeW42TLwsqdZEeNnSo0sGpVVQ2X8G2Ws7Cw9JXN9J46WZGE/pubchart?oid=1217359585&format=image
164+
[graph-users-ser]: https://docs.google.com/spreadsheets/d/e/2PACX-1vSJsmkX9LTVyohgO8R8tZjIxdRCZugLLNeW42TLwsqdZEeNnSo0sGpVVQ2X8G2Ws7Cw9JXN9J46WZGE/pubchart?oid=296776676&format=image
165+
[graph-clients-deser]: https://docs.google.com/spreadsheets/d/e/2PACX-1vSJsmkX9LTVyohgO8R8tZjIxdRCZugLLNeW42TLwsqdZEeNnSo0sGpVVQ2X8G2Ws7Cw9JXN9J46WZGE/pubchart?oid=684555912&format=image
166+
[graph-clients-ser]: https://docs.google.com/spreadsheets/d/e/2PACX-1vSJsmkX9LTVyohgO8R8tZjIxdRCZugLLNeW42TLwsqdZEeNnSo0sGpVVQ2X8G2Ws7Cw9JXN9J46WZGE/pubchart?oid=2004244401&format=image

archive/all-runs.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,54 @@
11
Benchmark runs by date
22

3+
## 2021-11-27
4+
5+
| Library | Version |
6+
|--------------|----------|
7+
| jackson | 2.13.0 |
8+
| genson | 1.6 |
9+
| fastjson | 1.2.78 |
10+
| gson | 2.8.9 |
11+
| org.json | 20210307 |
12+
| javax-json | 1.1.4 |
13+
| json-io | 4.13.0 |
14+
| flexjson | 3.3 |
15+
| boon | 0.34 |
16+
| json-smart | 2.4.7 |
17+
| johnzon | 1.2.15 |
18+
| logansquare | 1.3.7 |
19+
| dsl-json | 1.9.9 |
20+
| simplejson | 1.1.1 |
21+
| nanojson | 1.7 |
22+
| jodd json | 6.0.3 |
23+
| moshi | 1.12.0 |
24+
| tapestry | 5.7.3 |
25+
| jsoniter | 0.9.23 |
26+
| minimal-json | 0.9.5 |
27+
| mjson | 1.4.1 |
28+
| underscore | 1.71 |
29+
| purejson | 1.0.1 |
30+
| yasson | 1.0.9 |
31+
32+
**`Users` model**
33+
34+
![json deserialization performance for primitive types, String, List and simple POJOs][20211127-graph-users-deser]
35+
![json serialization performance for primitive types, String, List and simple POJOs][20211127-graph-users-ser]
36+
37+
**`Clients` model**
38+
![json deserialization performance for primitive types, String, List and simple POJOs, arrays, enum, UUID, LocalDate][20211127-graph-clients-deser]
39+
![json serialization performance for primitive types, String, List and simple POJOs, arrays, enum, UUID, LocalDate][20211127-graph-clients-ser]
40+
41+
42+
**JMH configuration and hardware**
43+
44+
Same as below, JMH 1.33.
45+
46+
**Links**
47+
48+
* [google spreadsheet][20211127-spreadsheet]
49+
* [raw-results-2020-03-01.md](/archive/raw-results-2021-11-27.md)
50+
51+
352
## 2020-03-01
453

554
| Library | Version |
@@ -256,3 +305,9 @@ Same as below, JMH 1.15.
256305
[20200301-graph-users-ser]: https://docs.google.com/spreadsheets/d/e/2PACX-1vSRA9tHwuThs4VSvTSaeP3e0XKsthz89oUvYpaDkybhoXbQYP2xOmf9Idtyz8Kmxoxx2grrL-kZYWEY/pubchart?oid=296776676&format=image
257306
[20200301-graph-clients-deser]: https://docs.google.com/spreadsheets/d/e/2PACX-1vSRA9tHwuThs4VSvTSaeP3e0XKsthz89oUvYpaDkybhoXbQYP2xOmf9Idtyz8Kmxoxx2grrL-kZYWEY/pubchart?oid=684555912&format=image
258307
[20200301-graph-clients-ser]: https://docs.google.com/spreadsheets/d/e/2PACX-1vSRA9tHwuThs4VSvTSaeP3e0XKsthz89oUvYpaDkybhoXbQYP2xOmf9Idtyz8Kmxoxx2grrL-kZYWEY/pubchart?oid=2004244401&format=image
308+
309+
[20211127-spreadsheet]: https://docs.google.com/spreadsheets/d/18XdXQi7GJmVgWBuo0BAsjbPUHW-qDHge1k4WT8uOEIU/edit?usp=sharing
310+
[20211127-graph-users-deser]: https://docs.google.com/spreadsheets/d/e/2PACX-1vSJsmkX9LTVyohgO8R8tZjIxdRCZugLLNeW42TLwsqdZEeNnSo0sGpVVQ2X8G2Ws7Cw9JXN9J46WZGE/pubchart?oid=1217359585&format=image
311+
[20211127-graph-users-ser]: https://docs.google.com/spreadsheets/d/e/2PACX-1vSJsmkX9LTVyohgO8R8tZjIxdRCZugLLNeW42TLwsqdZEeNnSo0sGpVVQ2X8G2Ws7Cw9JXN9J46WZGE/pubchart?oid=296776676&format=image
312+
[20211127-graph-clients-deser]: https://docs.google.com/spreadsheets/d/e/2PACX-1vSJsmkX9LTVyohgO8R8tZjIxdRCZugLLNeW42TLwsqdZEeNnSo0sGpVVQ2X8G2Ws7Cw9JXN9J46WZGE/pubchart?oid=684555912&format=image
313+
[20211127-graph-clients-ser]: https://docs.google.com/spreadsheets/d/e/2PACX-1vSJsmkX9LTVyohgO8R8tZjIxdRCZugLLNeW42TLwsqdZEeNnSo0sGpVVQ2X8G2Ws7Cw9JXN9J46WZGE/pubchart?oid=2004244401&format=image

0 commit comments

Comments
 (0)