Skip to content

Commit 39dcc55

Browse files
authored
Update README.md
1 parent ce50f92 commit 39dcc55

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

benchmark/README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,29 @@ Example output:
6666
SimplePerson Serialization: JSON5=0.027ms, JSON=0.013ms
6767
ComplexPerson Serialization: JSON5=0.083ms, JSON=0.015ms
6868
Company Serialization: JSON5=0.200ms, JSON=0.032ms
69-
```
69+
```
70+
71+
### Snapshot
72+
73+
| Case | Type | JSON5 Avg (ms) | JSON Avg (ms) | Speedup (JSON) |
74+
| ------------------- | --------------- | -------------- | ------------- | -------------- |
75+
| SimplePerson | Serialization | 0.056 | 0.020 | 2.77× |
76+
| SimplePerson | Deserialization | 0.064 | 0.022 | 2.93× |
77+
| ComplexPerson | Serialization | 0.089 | 0.019 | 4.59× |
78+
| ComplexPerson | Deserialization | 0.113 | 0.030 | 3.76× |
79+
| Company | Serialization | 0.226 | 0.059 | 3.81× |
80+
| Company | Deserialization | 0.254 | 0.090 | 2.83× |
81+
| NumberTypes | Serialization | 0.032 | 0.003 | 9.43× |
82+
| NumberTypes | Deserialization | 0.021 | 0.003 | 6.60× |
83+
| CollectionTypes | Serialization | 0.067 | 0.009 | 7.41× |
84+
| CollectionTypes | Deserialization | 0.059 | 0.025 | 2.37× |
85+
| SimplePersonList100 | Serialization | 0.153 | 0.042 | 3.64× |
86+
| SimplePersonList100 | Deserialization | 0.234 | 0.039 | 5.99× |
87+
| ComplexPersonList50 | Serialization | 0.388 | 0.059 | 6.59× |
88+
| ComplexPersonList50 | Deserialization | 0.452 | 0.089 | 5.09× |
89+
90+
**Overall Average Time**
91+
92+
* JSON5: **0.158 ms**
93+
* JSON: **0.036 ms**
94+
* 🔥 Overall: **KotlinX JSON is 4.33× faster than JSON5**

0 commit comments

Comments
 (0)