Skip to content

Commit aa07b71

Browse files
committed
Update README to note that results are out of date (for now)
1 parent 095ec51 commit aa07b71

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@ and the difference is from naming tests classes like `DZoneReadMapJackson` (repl
9595

9696
## Sample results
9797

98+
***NOTE!!!***
99+
100+
These results are bit out of date as of 31-May-2016: stay tuned for updates, with many new fast
101+
implementations, such as `dsl-json`, `fastjson` and newer versions of `Moshi` and `Boon`.
102+
103+
I hope to update this page, most likely moving sample results to separate Wiki pages, given
104+
number of permutations and so on.
105+
106+
### General
107+
98108
Since results may vary significantly between different platforms and JVM versions, it is best to
99109
run benchmark on systems you are using.
100110
But to give some idea of typical results, here are samples I get running tests on my work laptop:
@@ -120,8 +130,6 @@ DZoneWriteGSON.write1kAsString thrpt 95 1209.408 ± 10.565 ops/s
120130
DZoneWriteJsonIO.write1kAsString thrpt 95 883.185 ± 7.002 ops/s
121131
```
122132

123-
Given that the test measures throughput, Jackson (the fastest) is about 5x as fast as json.io (the slowest) for this test.
124-
125133
#### Reading 1000 item (POJO) list from String
126134

127135
```
@@ -138,8 +146,6 @@ DZoneReadPojoMoshi.read10FromString thrpt 45 92379.201 ± 1415.529 ops
138146
DZoneReadPojoJohnzon.read10FromString thrpt 45 74268.988 ± 1505.027 ops/s
139147
```
140148

141-
And in this case, Jackson is 50% faster than GSON, twice as fast as Moshi and triple Johnzon speed.
142-
143149
Json-io is not (yet) included because it seems to require JSON content to be specifically written by `json-io`
144150
itself, and not accept standard json representation (probably since it requires type information embedded).
145151

@@ -159,9 +165,3 @@ DZoneReadMapJohnzon.read10FromString thrpt 45 75610.515 ± 469.744 ops/
159165
DZoneReadMapJsonIO.read10FromString thrpt 45 28445.343 ± 279.304 ops/s
160166
DZoneReadMapJsonMoshi.read10FromString thrpt 45 86168.309 ± 1428.668 ops/s
161167
```
162-
163-
In this test, `Boon` has performance slightly exceeding standard Jackson (and only slightly
164-
below `jackson-jr`); GSON coming in relatively close, and other options being significantly
165-
slower.
166-
167-
Boon seems to specifically optimized for the combination of "untyped" (Lists, Maps) result, and use of `String` as input. In fact, with bigger input size, `Boon` is the fastest library.

0 commit comments

Comments
 (0)