diff options
Diffstat (limited to 'cli/bench/throughput.rs')
-rw-r--r-- | cli/bench/throughput.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/bench/throughput.rs b/cli/bench/throughput.rs index 83032e7a1..de18089bb 100644 --- a/cli/bench/throughput.rs +++ b/cli/bench/throughput.rs @@ -2,7 +2,7 @@ use super::Result; use std::{ - path::PathBuf, + path::Path, process::Command, time::{Duration, Instant}, }; @@ -11,7 +11,7 @@ const MB: usize = 1024 * 1024; const SERVER_ADDR: &str = "0.0.0.0:4544"; const CLIENT_ADDR: &str = "127.0.0.1 4544"; -pub(crate) fn cat(deno_exe: &PathBuf, megs: usize) -> f64 { +pub(crate) fn cat(deno_exe: &Path, megs: usize) -> f64 { let size = megs * MB; let shell_cmd = format!( "{} run --allow-read cli/tests/cat.ts /dev/zero | head -c {}", @@ -28,7 +28,7 @@ pub(crate) fn cat(deno_exe: &PathBuf, megs: usize) -> f64 { (end - start).as_secs_f64() } -pub(crate) fn tcp(deno_exe: &PathBuf, megs: usize) -> Result<f64> { +pub(crate) fn tcp(deno_exe: &Path, megs: usize) -> Result<f64> { let size = megs * MB; // The GNU flavor of `nc` requires the `-N` flag to shutdown the network socket after EOF on stdin |