Skip to content

Commit 839e95a

Browse files
committed
ci-bench: separately bench use of P384 curve
This renames the P256 cases, so will introduce a discontinuity in results tracking.
1 parent 71be83e commit 839e95a

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

ci-bench/src/main.rs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,13 @@ fn all_benchmarks_params() -> Vec<BenchmarkParams> {
326326
KeyType::EcdsaP256,
327327
CipherSuite::TLS13_AES_128_GCM_SHA256,
328328
&rustls::version::TLS13,
329-
"1.3_ecdsa_aes",
329+
"1.3_ecdsap256_aes",
330+
),
331+
(
332+
KeyType::EcdsaP384,
333+
CipherSuite::TLS13_AES_128_GCM_SHA256,
334+
&rustls::version::TLS13,
335+
"1.3_ecdsap384_aes",
330336
),
331337
(
332338
KeyType::Rsa,
@@ -338,7 +344,13 @@ fn all_benchmarks_params() -> Vec<BenchmarkParams> {
338344
KeyType::EcdsaP256,
339345
CipherSuite::TLS13_CHACHA20_POLY1305_SHA256,
340346
&rustls::version::TLS13,
341-
"1.3_ecdsa_chacha",
347+
"1.3_ecdsap256_chacha",
348+
),
349+
(
350+
KeyType::EcdsaP384,
351+
CipherSuite::TLS13_CHACHA20_POLY1305_SHA256,
352+
&rustls::version::TLS13,
353+
"1.3_ecdsap384_chacha",
342354
),
343355
] {
344356
all.push(BenchmarkParams::new(

ci-bench/src/util.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ use rustls::pki_types::{CertificateDer, PrivateKeyDer};
66
pub enum KeyType {
77
Rsa,
88
EcdsaP256,
9+
EcdsaP384,
910
}
1011

1112
impl KeyType {
1213
pub(crate) fn path_for(&self, part: &str) -> String {
1314
match self {
1415
Self::Rsa => format!("../test-ca/rsa/{}", part),
1516
Self::EcdsaP256 => format!("../test-ca/ecdsa-p256/{}", part),
17+
Self::EcdsaP384 => format!("../test-ca/ecdsa-p384/{}", part),
1618
}
1719
}
1820

0 commit comments

Comments
 (0)