debris / tiny-keccak

An implementation of Keccak derived functions specified in FIPS-202, SP800-185 and KangarooTwelve
Creative Commons Zero v1.0 Universal
193 stars 49 forks source link

Comparison with sha3 #14

Closed newpavlov closed 7 years ago

newpavlov commented 7 years ago

rust-crypto is abandoned and RustCrypto organization aims to succeed it. sha3 is part of it.

I've taken your f implementation and applied some other modifications to code inherited from the rust-crypto. (I've attributed you in the license file if you are interested) I think it's worth to do comparison with the sha3 crate not with the rust-crypto.

On my laptop I am getting the following results:

test rustcrypto_sha3_256_input_32_bytes    ... bench:         835 ns/iter (+/- 65) = 38 MB/s
test rustcrypto_sha3_256_input_4096_bytes  ... bench:      22,927 ns/iter (+/- 1,799) = 178 MB/s
test tiny_keccak_sha3_256_input_32_bytes   ... bench:         800 ns/iter (+/- 175) = 40 MB/s
test tiny_keccak_sha3_256_input_4096_bytes ... bench:      23,229 ns/iter (+/- 2,176) = 176 MB/s
debris commented 7 years ago

great! thanks! :)

newpavlov commented 7 years ago

Don't forget to update readme. ;)