chgk_ledb/bench.txt

24 lines
847 B
Plaintext
Raw Permalink 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
---
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-09 21:09:17 +00:00
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
2022-10-06 18:22:19 +00:00
Benchmark 2: print2
2022-10-09 21:09:17 +00:00
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
2022-10-06 18:22:19 +00:00
Benchmark 3: zip-print
2022-10-09 21:09:17 +00:00
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
2022-10-06 18:22:19 +00:00
Summary
2022-10-07 13:09:44 +00:00
'print2' ran
2022-10-09 21:09:17 +00:00
1.03 ± 0.11 times faster than 'print'
2.07 ± 0.20 times faster than 'zip-print'