Benchee run
Benchee.run(
%{
"JSON.encode!" => &JSON.encode!/1,
"JSON.encode_to_iodata!" => &JSON.encode_to_iodata!/1,
"EEx template" => &EExJsonEncoder.encode/1
},
inputs: %{
"sample" => TestData.sample()
},
time: 5,
warmup: 2,
memory_time: 2,
reduction_time: 2,
print: [fast_warning: false]
)