chgk_ledb/bench.txt

21 lines
998 B
Plaintext
Raw Normal View History

2022-10-06 18:22:19 +00:00
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'