Skip to content

Conversation

@alexvigdor
Copy link
Contributor

Add djomo 0.9.4 to json databind benchmarks

https://github.com/alexvigdor/djomo-core

@fabienrenaud
Copy link
Owner

Please:

  • rebase/merge from master. Another PR updated the entire gradle file
  • add djomo to the readme
  • run ser and deser benchmarks against jackson and paste results in here

@alexvigdor
Copy link
Contributor Author

alexvigdor commented Dec 5, 2025

Rebased on master and updated README.

Here are ser/deser results for djomo and Jackson from my local environment, both data models

# JMH version: 1.35
# VM version: JDK 21.0.7, Java HotSpot(TM) 64-Bit Server VM, 21.0.7+8-LTS-245
# VM invoker: /Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home/bin/java
# VM options: -Xms2g -Xmx2g --add-opens=java.base/java.time=ALL-UNNAMED --add-modules=jdk.incubator.vector

./run ser --apis databind --libs djomo,jackson        

Benchmark                           Mode  Cnt         Score        Error  Units
Serialization.djomo                thrpt   20  12666009.592 ±  33952.148  ops/s
Serialization.jackson              thrpt   20   8846021.214 ± 607197.516  ops/s
Serialization.jackson_afterburner  thrpt   20   9372887.836 ± 105393.052  ops/s
Serialization.jackson_blackbird    thrpt   20   9387679.980 ±  47921.406  ops/s


./run deser --apis databind --libs djomo,jackson

Benchmark                             Mode  Cnt         Score         Error  Units
Deserialization.djomo                thrpt   20  10227158.019 ±   45505.615  ops/s
Deserialization.jackson              thrpt   20   5430279.190 ±   48466.516  ops/s
Deserialization.jackson_afterburner  thrpt   20   4398048.329 ± 1101434.645  ops/s
Deserialization.jackson_blackbird    thrpt   20   5412366.025 ±  171985.926  ops/s


./run ser --apis databind --libs djomo,jackson --datatype clients 

Benchmark                           Mode  Cnt         Score        Error  Units
Serialization.djomo                thrpt   20  10799704.547 ± 153469.921  ops/s
Serialization.jackson              thrpt   20   8124823.700 ±  68473.930  ops/s
Serialization.jackson_afterburner  thrpt   20   9156993.625 ± 138002.621  ops/s
Serialization.jackson_blackbird    thrpt   20   9311966.845 ± 234705.915  ops/s


./run deser --apis databind --libs djomo,jackson --datatype clients

Benchmark                             Mode  Cnt        Score        Error  Units
Deserialization.djomo                thrpt   20  9264449.381 ± 156690.437  ops/s
Deserialization.jackson              thrpt   20  3684777.261 ±  63026.927  ops/s
Deserialization.jackson_afterburner  thrpt   20  4034934.338 ±  45668.356  ops/s
Deserialization.jackson_blackbird    thrpt   20  4128844.779 ±  37379.403  ops/s

@fabienrenaud fabienrenaud merged commit 2b3d142 into fabienrenaud:master Dec 5, 2025
1 check passed
@fabienrenaud
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants