From 50f05f30ee517e10016b457c399af6d6750f0a6b Mon Sep 17 00:00:00 2001 From: lodge Date: Fri, 10 Jan 2025 15:44:07 -0400 Subject: [PATCH] chore(bench): added simulated latency to benchmarks --- compute/src/executor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compute/src/executor.rs b/compute/src/executor.rs index 50ced31..430f053 100644 --- a/compute/src/executor.rs +++ b/compute/src/executor.rs @@ -100,7 +100,7 @@ impl Executor for LocalSimulator { } } -fn simulate_transfer_time_ms(payload: &Vec, latency: &f64) { +fn simulate_transfer_time_ms(payload: &[u8], latency: &f64) { let bytes_size = payload.len() as f64; let transfer_time = bytes_size / latency * 1000.0; // Convert seconds to milliseconds sleep(Duration::from_millis(transfer_time as u64))