From 10c415eaaa472ea4d28108dc99e5ae1c090b5bae Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 5 Oct 2021 22:27:44 -0400 Subject: Remove some unused benchmarks (#12315) --- cli/bench/main.rs | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'cli/bench/main.rs') diff --git a/cli/bench/main.rs b/cli/bench/main.rs index 8078259d9..67034ce63 100644 --- a/cli/bench/main.rs +++ b/cli/bench/main.rs @@ -16,7 +16,6 @@ use std::time::SystemTime; mod http; mod lsp; -mod throughput; fn read_json(filename: &str) -> Result { let f = fs::File::open(filename)?; @@ -326,17 +325,6 @@ fn bundle_benchmark(deno_exe: &Path) -> Result> { Ok(sizes) } -fn run_throughput(deno_exe: &Path) -> Result> { - let mut m = HashMap::::new(); - - m.insert("100M_tcp".to_string(), throughput::tcp(deno_exe, 100)?); - m.insert("100M_cat".to_string(), throughput::cat(deno_exe, 100)); - m.insert("10M_tcp".to_string(), throughput::tcp(deno_exe, 10)?); - m.insert("10M_cat".to_string(), throughput::cat(deno_exe, 10)); - - Ok(m) -} - fn run_http(target_dir: &Path, new_data: &mut BenchResult) -> Result<()> { let stats = http::benchmark(target_dir)?; @@ -452,7 +440,6 @@ struct BenchResult { req_per_sec: HashMap, syscall_count: HashMap, thread_count: HashMap, - throughput: HashMap, } /* @@ -495,10 +482,7 @@ fn main() -> Result<()> { ..Default::default() }; - // Cannot run throughput benchmark on windows because they don't have nc or - // pipe. if cfg!(not(target_os = "windows")) { - new_data.throughput = run_throughput(&deno_exe)?; run_http(&target_dir, &mut new_data)?; } -- cgit v1.2.3