chgk_ledb/bench.txt
2022-10-06 21:22:19 +03:00

21 lines
998 B
Plaintext
Raw 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.

hyperfine -n print -n print2 -n zip-print -w 100 -m 100 ".\target\release\chgk_ledb.exe print 444" ".\target\release\chgk_ledb.exe print2 444" ".\target\release\chgk_ledb.exe zip-print 444 4"
Benchmark 1: print
Time (mean ± σ): 19.9 ms ± 1.8 ms [User: 5.3 ms, System: 14.3 ms]
Range (min … max): 17.4 ms … 26.2 ms 100 runs
Benchmark 2: print2
Time (mean ± σ): 79.1 ms ± 5.5 ms [User: 10.4 ms, System: 61.4 ms]
Range (min … max): 71.6 ms … 122.1 ms 100 runs
Warning: Statistical outliers were detected. Consider re-running this benchmark on a quiet PC without any interferences from other programs. It might help to use the '--warmup' or '--prepare' options.
Benchmark 3: zip-print
Time (mean ± σ): 38.0 ms ± 2.2 ms [User: 10.0 ms, System: 23.4 ms]
Range (min … max): 34.3 ms … 43.1 ms 100 runs
Summary
'print' ran
1.91 ± 0.20 times faster than 'zip-print'
3.98 ± 0.45 times faster than 'print2'