r/java • • Aug 11 '26

Apache Fory™ JSON : Fastest JSON Serialization Framework for Java, 10x faster than Jackson/Gson

https://fory.apache.org/blog/fory_json_fastest_java_json_framework/
253 Upvotes

84 comments sorted by

View all comments

10

u/[deleted] Aug 11 '26

[removed] — view removed comment

22

u/Shawn-Yang25 Aug 11 '26

No, we use runtime codegen for better performance. For andriod, we do use annotation processor to geenrate android R8 rules and generate field accessors. But for JDK, we always use runtime codegen.

https://fory.apache.org/blog/fory_json_fastest_java_json_framework/#how-fory-json-achieves-high-performance share some details about how we make fory json fast.

3

u/Additional-Road3924 Aug 12 '26

This is an important distinction. Are you comparing jackson basic with fury or jackson blackbird (https://github.com/FasterXML/jackson-modules-base/tree/3.x/blackbird)?

2

u/Shawn-Yang25 Aug 12 '26

jackson blackbird only gives 10% improvements, so the results still persists:

RepresentationOperationJackson ops/secJackson Blackbird ops/secDifference ops/secBlackbird improvement
StringSerialize1,956,6912,144,424+187,733+9.59%
StringDeserialize1,045,0161,072,902+27,887+2.67%
UTF-8 bytesSerialize1,703,9971,971,515+267,519+15.70%
UTF-8 bytesDeserialize1,212,8791,314,077+101,198+8.34%

here is the benchmark:
https://github.com/apache/fory/pull/3930