有一個 1.2 GB 是影片檔案
(svddb_sdk) ╭─pon@admini ~/code/vobile/svddb_sdk ‹master*›
╰─➤ ls -alh /home/pon/Downloads/svddb/meta/video_rename/1d0143aa-1d38-11ed-85a5-42010a800101.mp4
-rw-rw-r-- 1 pon pon 1.2G Dec 6 11:17 /home/pon/Downloads/svddb/meta/video_rename/1d0143aa-1d38-11ed-85a5-42010a800101.mp4
讓我們來看看使用 md5sum 計算該檔案的 md5 值需要多久!
╰─➤ time md5sum /home/pon/Downloads/svddb/meta/video_rename/1d0143aa-1d38-11ed-85a5-42010a800101.mp4
6d8572d156db4b180a49d03f6bbf0c1a /home/pon/Downloads/svddb/meta/video_rename/1d0143aa-1d38-11ed-85a5-42010a800101.mp4
md5sum 3.60s user 0.48s system 99% cpu 4.084 total
花了 3.6s 哦