summaryrefslogtreecommitdiff
path: root/cli/bench/throughput.rs
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2021-02-12 21:08:36 +1100
committerGitHub <noreply@github.com>2021-02-12 21:08:36 +1100
commit54e53cc9ea0767dfe8a44f92361f68c03f5f038f (patch)
tree12fa9db568984e97f5885e488857d406580a99b9 /cli/bench/throughput.rs
parent146fb360c649f87c6898848bd3ee3610cd7ee8a6 (diff)
chore: Update to Rust 1.50.0 (#9479)
Diffstat (limited to 'cli/bench/throughput.rs')
-rw-r--r--cli/bench/throughput.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/bench/throughput.rs b/cli/bench/throughput.rs
index 6fd3972d1..83032e7a1 100644
--- a/cli/bench/throughput.rs
+++ b/cli/bench/throughput.rs
@@ -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) -> Result<f64> {
+pub(crate) fn cat(deno_exe: &PathBuf, megs: usize) -> f64 {
let size = megs * MB;
let shell_cmd = format!(
"{} run --allow-read cli/tests/cat.ts /dev/zero | head -c {}",
@@ -25,7 +25,7 @@ pub(crate) fn cat(deno_exe: &PathBuf, megs: usize) -> Result<f64> {
let _ = test_util::run_collect(cmd, None, None, None, true);
let end = Instant::now();
- Ok((end - start).as_secs_f64())
+ (end - start).as_secs_f64()
}
pub(crate) fn tcp(deno_exe: &PathBuf, megs: usize) -> Result<f64> {