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-09 21:09:17 +00:00
232 MB test.bin
2022-10-07 12:43:22 +00:00
95 MB json.zip
---
2022-11-09 18:31:38 +00:00
hyperfine -n print -n print2 -n zip-print -w 400 -m 400 ".\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-11-09 18:31:38 +00:00
Time (mean ± σ): 19.0 ms ± 1.5 ms [User: 5.6 ms, System: 13.1 ms]
Range (min … max): 16.8 ms … 24.5 ms 400 runs
2022-10-06 18:22:19 +00:00
Benchmark 2: print2
2022-11-09 18:31:38 +00:00
Time (mean ± σ): 18.6 ms ± 1.6 ms [User: 5.5 ms, System: 12.6 ms]
Range (min … max): 16.1 ms … 29.5 ms 400 runs
2022-10-06 18:22:19 +00:00
Benchmark 3: zip-print
2022-11-09 18:31:38 +00:00
Time (mean ± σ): 40.8 ms ± 3.3 ms [User: 15.4 ms, System: 21.6 ms]
Range (min … max): 36.5 ms … 67.5 ms 400 runs
2022-10-06 18:22:19 +00:00
Summary
2022-10-07 13:09:44 +00:00
'print2' ran
2022-11-09 18:31:38 +00:00
1.02 ± 0.12 times faster than 'print'
2.20 ± 0.26 times faster than 'zip-print'