1 USING: checksums checksums.sha sequences byte-arrays kernel ;
4 : sha1-benchmark ( -- )
5 2000000 <iota> >byte-array sha1 checksum-bytes drop ;
7 : sha224-benchmark ( -- )
8 2000000 <iota> >byte-array sha-224 checksum-bytes drop ;
10 : sha256-benchmark ( -- )
11 2000000 <iota> >byte-array sha-256 checksum-bytes drop ;
13 USE: checksums.openssl
15 : openssl-sha1-benchmark ( -- )
16 2000000 <iota> >byte-array openssl-sha1 checksum-bytes drop ;