chgk_ledb/bench.txt

24 lines
848 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

866 MB db/data.mdb
232 MB test.bin
95 MB json.zip
---
hyperfine -n print -n print2 -n zip-print -w 400 -m 400 ".\target\release\chgk_ledb.exe print 444" ".\target\release\chgk_ledb.exe print2 444" ".\target\release\chgk_ledb.exe zip-print 4 84"
Benchmark 1: print
Time (mean ± σ): 19.0 ms ± 1.5 ms [User: 5.6 ms, System: 13.1 ms]
Range (min … max): 16.8 ms … 24.5 ms 400 runs
Benchmark 2: print2
Time (mean ± σ): 18.6 ms ± 1.6 ms [User: 5.5 ms, System: 12.6 ms]
Range (min … max): 16.1 ms … 29.5 ms 400 runs
Benchmark 3: zip-print
Time (mean ± σ): 40.8 ms ± 3.3 ms [User: 15.4 ms, System: 21.6 ms]
Range (min … max): 36.5 ms … 67.5 ms 400 runs
Summary
'print2' ran
1.02 ± 0.12 times faster than 'print'
2.20 ± 0.26 times faster than 'zip-print'