Hullo
I am writing a tool that checks files for corruption by comparing their calculated checksums vs ones in a manifest text file.
Calculating SHA512 checksums is costly for big files but I was surprised to see Ruby outperforming Crystal.
These are the files I'm using for Benchmarking - and I'd like other people to confirm my results.
Unzip the contents of this file into the cloned directory (~5GB zipped / ~10GB unzipped). They are the files used whose checksums are calculated as a test bench.
crystal build --release shootout.cr
time ./shootout
)time ruby shootout.rb
$ crystal build --release shootout.cr
$ time ./shootout
Awesome!: video_3.mov
Awesome!: picard.jpeg
Awesome!: lorem_1.txt
Awesome!: video_1.mov
Awesome!: urand.data
Awesome!: video_2.mov
real 0m42.383s
user 0m37.452s
sys 0m4.074s
$ time ruby shootout.rb
Awesome!: video_3.mov
Awesome!: picard.jpeg
Awesome!: lorem_1.txt
Awesome!: video_1.mov
Awesome!: urand.data
Awesome!: video_2.mov
real 0m25.769s
user 0m21.017s
sys 0m3.911s
Add it as an issue in the git repo. Please try to include: