Programming-Language-Benchmarks icon indicating copy to clipboard operation
Programming-Language-Benchmarks copied to clipboard

json-serde: streaming md5

Open mateusz834 opened this issue 2 years ago • 2 comments

(for canada 100)

Before:

User time (seconds): 3.61
Maximum resident set size (kbytes): 542020

After:

User time (seconds): 3.45
Maximum resident set size (kbytes): 114816

mateusz834 avatar Apr 05 '23 13:04 mateusz834

Thanks for the PR! It's a great optimization, but I think it makes the zig solution incomparable to others, I might need more time to think about it.

hanabi1224 avatar Apr 13 '23 09:04 hanabi1224

How about 2-streaming.zig ? I also added streaming md5 for go and rust. (go doesn't have any performance improvements, it buffers the entire json before writing) and added error handling for the go code.

mateusz834 avatar Apr 13 '23 12:04 mateusz834