diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2024-06-23 17:08:58 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2024-06-23 17:12:01 +0200 |
commit | d2280ad9e239fb686bcc1df74fa465dba50b235c (patch) | |
tree | 461a898b36aac1ee9b043cbbea822070a1fd14b2 /example/src/main | |
parent | 7fec6de7662b80a70a46b37043d007e278fdb894 (diff) |
perf: Reuse a single JsonProvider.
This speeds up the formatter significantly.
Before:
Benchmark Mode Cnt Score Error Units
FormatterBenchmark.massivelyStructuredLogRecord thrpt 10 6552.727 ± 2169.572 ops/s
FormatterBenchmark.simpleLogRecord thrpt 10 8126.699 ± 2259.912 ops/s
FormatterBenchmark.structuredLogRecord thrpt 10 5594.849 ± 1129.151 ops/s
After:
Benchmark Mode Cnt Score Error Units
FormatterBenchmark.massivelyStructuredLogRecord thrpt 10 137879.001 ± 30467.644 ops/s
FormatterBenchmark.simpleLogRecord thrpt 10 896085.217 ± 249890.421 ops/s
FormatterBenchmark.structuredLogRecord thrpt 10 553428.807 ± 194787.754 ops/s
Change-Id: If184327a4ff0de0d92b769493dbf6270ba3a8c8e
Diffstat (limited to 'example/src/main')
0 files changed, 0 insertions, 0 deletions