fabienrenaud / java-json-benchmark

Performance testing of serialization and deserialization of Java JSON libraries
MIT License
965 stars 134 forks source link

upgrade fastjson to 2.0.51 #104

Closed wenshao closed 2 months ago

wenshao commented 3 months ago

fastjson 2.0.50 once again improves performance. fastjson 2.0.50 provides configuration parameters that do not generate unnecessary code during JIT to improve performance. Configuration parameters can be set through the API or configured through JVM startup parameters.

This PR upgrades the fastjson version and enables JVM startup parameters to improve performance.

wenshao commented 3 months ago

It has been updated to version 2.0.51, and non-default test methods have been added

wenshao commented 2 months ago

Please run the benchmark showing both fastjson2 and fastjson2_features results for ser and deser.

./run deser --apis databind --libs fastjson --size 1000
Benchmark                           Mode  Cnt     Score   Error  Units
Deserialization.fastjson           thrpt   20  1089.563 ? 6.804  ops/s
Deserialization.fastjson_features  thrpt   20  1129.553 ? 8.832  ops/s

./run ser --apis databind --libs fastjson --size 1000
Benchmark                         Mode  Cnt     Score    Error  Units
Serialization.fastjson           thrpt   20  1511.359 ? 10.985  ops/s
Serialization.fastjson_features  thrpt   20  1549.062 ? 27.393  ops/s