min tab 2

This commit is contained in:
2022-10-07 15:43:22 +03:00
parent 42fc486872
commit 16784a3319
2 changed files with 73 additions and 50 deletions
+14 -11
View File
@@ -1,20 +1,23 @@
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"
866 MB db/data.mdb
233 MB test.bin
95 MB json.zip
---
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 4 84"
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
Time (mean ± σ): 17.7 ms ± 2.0 ms [User: 4.3 ms, System: 13.3 ms]
Range (min … max): 15.7 ms … 32.0 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.
Time (mean ± σ): 62.2 ms ± 4.3 ms [User: 5.6 ms, System: 53.1 ms]
Range (min … max): 58.1 ms … 94.5 ms 100 runs
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
Time (mean ± σ): 37.0 ms ± 6.1 ms [User: 12.0 ms, System: 20.8 ms]
Range (min … max): 32.3 ms … 94.3 ms 100 runs
Summary
'print' ran
1.91 ± 0.20 times faster than 'zip-print'
3.98 ± 0.45 times faster than 'print2'
2.08 ± 0.41 times faster than 'zip-print'
3.50 ± 0.46 times faster than 'print2'