9 Commits

Author SHA1 Message Date
Brian Smith
1598583c82 bench: Add digest overhead benchmarks. 2023-11-21 13:26:02 -08:00
Brian Smith
a5dbb01f63 bench aead: Do Cartesian product, not zip.
The `zip()` was written intending it to work like a Cartesian product,
but of course `zip()` doesn't do that. Do an actual Cartesian product.
2023-11-21 13:25:22 -08:00
Brian Smith
90dd9218cd RSA: Add benchmarks for signature verification. 2023-11-20 16:49:29 -08:00
Brian Smith
acf9f0df2d Generalize agreement benchmarks to support all algorithms. 2023-10-30 15:41:34 -07:00
Vlad Krasnov
0223beea17 Benchmarks: add ECDSA benchmarks
Fixes: #1772
2023-10-30 13:37:11 -07:00
Brian Smith
711d9fc062 AEAD benchmarks: Rewrite to avoid macros.
When this benchmark was imported from crypto-bench to *ring* and
ported from the libtest `#[bench]` framework to Criterion.rs, we
kept the macro-based structure from the original benchmarks. However,
Criterion.rs actually supports the kind of parameterized benchmarking
we do much more naturally, and so we don't need the macros. Get rid of
them.

Also remove distinction between TLS 1.2 and TLS 1.3 AAD. These
benchmarks were originally written long ago when the TLS 1.3 draft
specified a different AAD format.

I hope this will serve as a better example of how to write such
benchmarks than it previously did.
2023-10-27 10:08:58 -07:00
Brian Smith
667768269c AEAD benchmark: Remove superfluous use of libstd. 2023-10-08 20:02:11 -07:00
Brian Smith
42936aa198 Bench: Use criterion.rs 0.5.1. 2023-10-06 23:33:24 -07:00
Brian Smith
fa5d6bd6ac Move benchmarks to a new ring-bench crate.
Move the Criterion.rs dependency out of *ring* into a new `ring-benches`
crate. This speeds up many build scenerios by eliminating a bunch of
dependencies from *ring*'s dependency tree for `cargo test`.
2023-10-06 21:54:05 -07:00