Skip to content

Commit 8c3adb5

Browse files
committed
Add JSON to the bench
1 parent b58af6f commit 8c3adb5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bench/logger_json_overhead.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ redactors = []
8181

8282
Benchee.run(
8383
%{
84+
"just JSON" => fn input -> JSON.encode_to_iodata!(input) end,
8485
"just Jason" => fn input -> Jason.encode_to_iodata!(input) end,
8586
"logger_json encode" => fn input ->
8687
%{message: LoggerJSON.Formatter.RedactorEncoder.encode(input, redactors)}

0 commit comments

Comments
 (0)