chgk_ledb/bench.txt

24 lines
848 B
Plaintext
Raw Normal View History

2022-10-07 12:43:22 +00:00
866 MB db/data.mdb
2022-10-07 23:02:27 +00:00
149 MB test.bin
2022-10-07 12:43:22 +00:00
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"
2022-10-06 18:22:19 +00:00
Benchmark 1: print
2022-10-07 13:09:44 +00:00
Time (mean ± σ): 16.9 ms ± 5.0 ms [User: 5.5 ms, System: 13.4 ms]
Range (min … max): 14.5 ms … 65.1 ms 107 runs
2022-10-06 18:22:19 +00:00
Benchmark 2: print2
2022-10-07 13:09:44 +00:00
Time (mean ± σ): 16.4 ms ± 5.2 ms [User: 4.9 ms, System: 13.2 ms]
Range (min … max): 13.9 ms … 67.5 ms 110 runs
2022-10-06 18:22:19 +00:00
Benchmark 3: zip-print
2022-10-07 13:09:44 +00:00
Time (mean ± σ): 38.3 ms ± 7.4 ms [User: 13.5 ms, System: 22.1 ms]
Range (min … max): 32.8 ms … 91.7 ms 100 runs
2022-10-06 18:22:19 +00:00
Summary
2022-10-07 13:09:44 +00:00
'print2' ran
1.04 ± 0.45 times faster than 'print'
2.35 ± 0.87 times faster than 'zip-print'