mirror of
https://github.com/kristoferssolo/tls-pq-bench.git
synced 2026-03-21 16:26:22 +00:00
refactor(runner): remove test connection
This commit is contained in:
1
justfile
1
justfile
@@ -12,6 +12,7 @@ alias c := check
|
||||
alias d := docs
|
||||
alias f := fmt
|
||||
alias t := test
|
||||
alias bench := benchmark
|
||||
|
||||
# Run all checks (fmt, clippy, docs, test)
|
||||
[group("dev")]
|
||||
|
||||
@@ -183,21 +183,6 @@ async fn run_benchmark(
|
||||
}
|
||||
info!("warmup complete");
|
||||
|
||||
let test_conn = tls_connector
|
||||
.connect(
|
||||
server_name.clone(),
|
||||
TcpStream::connect(server)
|
||||
.await
|
||||
.into_diagnostic()
|
||||
.context(format!("failed to connect to server {server}"))?,
|
||||
)
|
||||
.await
|
||||
.into_diagnostic()
|
||||
.context("TLS handshake failed")?;
|
||||
|
||||
let cipher = test_conn.get_ref().1.negotiated_cipher_suite();
|
||||
info!(cipher = ?cipher, "TLS handshake complete");
|
||||
|
||||
#[allow(clippy::cast_possible_truncation)] // concurrency is limited to reasonable values
|
||||
let semaphore = Arc::new(Semaphore::new(config.concurrency as usize));
|
||||
let tasks = spawn_benchmark_tasks(config, &semaphore, tls_connector, server_name);
|
||||
|
||||
Reference in New Issue
Block a user