Last active
September 19, 2016 20:51
-
-
Save larsgroeber/1e05df77e3def4fe8c7a5575cd3f0b91 to your computer and use it in GitHub Desktop.
Get elapsed time for hashing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
max=1000 | |
cmd="sha256sum -" | |
blob="dsahgjkasgktaskgk" | |
endCmd="" | |
for (( i=1; i<=$max; i++ )) | |
do | |
endCmd=${endCmd}"echo ${blob}$i | $cmd;" | |
done | |
time $endCmd | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment