Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add openssl and rust-crypto to benchmark #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Paxa
Copy link

@Paxa Paxa commented Apr 23, 2018

Added more libs for benchmark

Running with 34 MB file:

% WITHOUT_SHA1SUM=1 cargo run --release ~/Downloads/kafka_2.11-0.9.0.1.tgz                       
    Finished release [optimized] target(s) in 0.24 secs
     Running `target/release/bench /Users/pavel/Downloads/kafka_2.11-0.9.0.1.tgz`
sha1: fc9ed9b663dd608486a1e56197d318c41813d326
sha1 crate: 381.99 MB/s
ring: SHA1:fc9ed9b663dd608486a1e56197d318c41813d326
ring crate: 236.68 MB/s
openssl: fc9ed9b663dd608486a1e56197d318c41813d326
openssl crate: 857.60 MB/s
crypto: fc9ed9b663dd608486a1e56197d318c41813d326
crypto crate: 375.14 MB/s

@newpavlov
Copy link

Instead of using SHA-1 implementation from rust-crypto it's better to compare with sha-1 crate from RustCrypto project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants