GWphua commented on PR #18457:
URL: https://github.com/apache/druid/pull/18457#issuecomment-3244538009

   A further update on the performances, these are the results from 50,000 
accesses of readValue() on a small object (~10 characters of string), using a 
normal mapper (Results for SmileMapper above). While Jackson JR is the most 
performant, it might be complex to set up. 
   
   We can either look to using `JavaType`, or ObjectReader... They bring some 
performance boosts for the simplicity of change.
   
   ```
   Benchmark                                                        Mode  Cnt   
   Score     Error  Units
   JsonLibrarySerializationBenchmark.jacksonJr_json                 avgt   30  
10779.843 ± 200.994  us/op
   JsonLibrarySerializationBenchmark.javaType_json                  avgt   30  
11279.839 ± 368.868  us/op
   JsonLibrarySerializationBenchmark.javaType_json_afterburner      avgt   30  
11080.339 ± 310.208  us/op
   JsonLibrarySerializationBenchmark.objectReader_json              avgt   30  
11519.170 ±  46.703  us/op
   JsonLibrarySerializationBenchmark.objectReader_json_afterburner  avgt   30  
11341.113 ± 183.754  us/op
   JsonLibrarySerializationBenchmark.typeReference_json             avgt   30  
12168.292 ±  35.448  us/op
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to