Actions
SHA-1 prototype » History » Revision 2
« Previous |
Revision 2/7
(diff)
| Next »
Greg Burri, 06/21/2009 04:44 PM
SHA-1 prototype¶
directory : source:/prototypes/01_SHA1
Goals¶
- Compute the SHA-1 of each part of a given file.
- Compute the SHA-1 of a stream.
- Find the fastest way to compute SHA1, should be at least 40 MB/s.
Speed measures¶
file : 01.wmv
: 17'639'245 byte ~ 17Mo (buffered)
Each measurement is pre-runned once to put the file in cache.
sha1sum from GNU coreutils (Reference)¶
speed : 57 MB/s
<gburri@overnux:~/code/lang/haskell/SHA1$> time sha1sum < 01.wmv 3aec84601612e8c604ac01971e0ecd9d536dbead - real 0m0.301s user 0m0.276s sys 0m0.020s
QCryptographicHash¶
speed :
<flynux:~/code/projects/aybabtu/prototypes/01_SHA1/qt_sha1 $> time ./qt_sha1 < ../01.wmv "3aec84601612e8c604ac01971e0ecd9d536dbead" real 0m0.360s user 0m0.324s sys 0m0.032s
Updated by Greg Burri over 15 years ago · 2 revisions