db read with mmap
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-11-09 21:03:35 +03:00
parent 7efd03d624
commit 6a3b3647b3
5 changed files with 41 additions and 35 deletions
+8 -8
View File
@@ -6,18 +6,18 @@
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 ± σ): 20.0 ms ± 1.5 ms [User: 3.4 ms, System: 11.7 ms]
Range (min … max): 17.4 ms … 24.1 ms 100 runs
Time (mean ± σ): 20.0 ms ± 1.7 ms [User: 5.8 ms, System: 12.3 ms]
Range (min … max): 18.0 ms … 30.9 ms 100 runs
Benchmark 2: print2
Time (mean ± σ): 19.4 ms ± 1.5 ms [User: 5.5 ms, System: 9.8 ms]
Range (min … max): 17.0 ms … 23.9 ms 100 runs
Time (mean ± σ): 19.1 ms ± 1.2 ms [User: 5.7 ms, System: 12.3 ms]
Range (min … max): 17.2 ms … 22.1 ms 100 runs
Benchmark 3: zip-print
Time (mean ± σ): 40.2 ms ± 2.3 ms [User: 15.1 ms, System: 18.9 ms]
Range (min … max): 36.6 ms … 48.1 ms 100 runs
Time (mean ± σ): 41.1 ms ± 1.4 ms [User: 16.1 ms, System: 22.2 ms]
Range (min … max): 38.9 ms … 45.4 ms 100 runs
Summary
'print2' ran
1.03 ± 0.11 times faster than 'print'
2.07 ± 0.20 times faster than 'zip-print'
1.05 ± 0.11 times faster than 'print'
2.16 ± 0.15 times faster than 'zip-print'