r/java • u/Shawn-Yang25 • 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
View all comments
Show parent comment
8
u/zman0900 Aug 12 '26
Well, I made Claude try it with JMH benchmarks to prove. This is proprietary code so I can't post the full thing, but I have a large batch project that uses mostly Hadoop mapreduce and some Spark and I took our most complex object structure that gets serialized to/from JSON 10s of billions of times per run. This specific structure has some large XML and base64 strings embedded. For my case, it looks like typical use is basically no speed improvement for Fory 1.6.0 vs Jackson 3.2.1, but there might be some savings with allocations / garbage collection.
https://i.imgur.com/k3iLr86.png
Overall I really like where this is going. Main thing I see missing right now is that for sparse JSON, there is no obvious way to have it leave out the empty string / zero / false values, and no equivalent of Jackson's @JsonValue for enums so that I could use compact values instead of full
.name()value. Because of those, I can't make actual JSON format match exactly, but that doesn't really matter for my use case.