briansmith / crypto-bench

Benchmarks for crypto libraries (in Rust, or with Rust bindings)
70 stars 11 forks source link

Add OpenSSL aead benchmarks; add wolfssl aead and digest benchmarks #32

Closed ymjing closed 4 years ago

ymjing commented 6 years ago

This PR introduces several benchmarks for AES-128-GCM, AES-256-GCM, and Chacha20Poly1305 implementations in OpenSSL/LibreSSL; and several aead and digest benchmarks for wolfSSL.

A quick run on a Ubuntu 16.04.3 x86_64 server shows Ring is much faster than OpenSSL 1.0.2g.

Benchmark Ring (MB/s) OpenSSL (MB/s) Improvement %
aes_128_gcm:tls12_8192 2465 1791 37.6%
aes_128_gcm:tls13_8192 2149 2038 5.4%
aes_256_gcm:tls12_8192 1865 1656 12.6%
aes_256_gcm:tls13_8192 1931 1657 16.5%

What do you think about the results? Is it fair to measure the performance of OpenSSL using rust bindings?

briansmith commented 6 years ago

@kevinis I overlooked this PR from you for a long time. Sorry! Are you still interested in it? If so, could you please split it into two PRs, one for OpenSSL and another for WolfSSL? Thanks! Please add the text "I agree to license my contributions to each file under the terms given at the top of each file I changed." to the commit message of each commit.

briansmith commented 4 years ago

Thank you. Unfortunately, I just don't have time to work on this project so I'm going to stop accepting contributions for a while.