From bc381572d11d5861f78215a639f80fa250384087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sun, 2 Jul 2023 03:24:54 +0200 Subject: [PATCH] build: remove stale benchmark (#19681) With https://github.com/denoland/deno/pull/19658 we can't bench it anymore. --- cli/bench/http.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/cli/bench/http.rs b/cli/bench/http.rs index 909c4937c3..243ea31542 100644 --- a/cli/bench/http.rs +++ b/cli/bench/http.rs @@ -28,9 +28,6 @@ pub fn benchmark( let hyper_hello_exe = target_path.join("test_server"); let hyper_hello_exe = hyper_hello_exe.to_str().unwrap(); - let core_http_json_ops_exe = target_path.join("examples/http_bench_json_ops"); - let core_http_json_ops_exe = core_http_json_ops_exe.to_str().unwrap(); - let mut res = HashMap::new(); let manifest_dir = Path::new(env!("CARGO_MANIFEST_DIR")); let http_dir = manifest_dir.join("bench").join("http"); @@ -112,12 +109,6 @@ pub fn benchmark( } } - // "core_http_json_ops" previously had a "bin op" counterpart called "core_http_bin_ops", - // which was previously also called "deno_core_http_bench", "deno_core_single" - res.insert( - "core_http_json_ops".to_string(), - core_http_json_ops(core_http_json_ops_exe)?, - ); res.insert("hyper".to_string(), hyper_http(hyper_hello_exe)?); Ok(res) @@ -198,12 +189,6 @@ fn server_addr(port: u16) -> String { format!("0.0.0.0:{port}") } -fn core_http_json_ops(exe: &str) -> Result { - // let port = get_port(); - println!("http_benchmark testing CORE http_bench_json_ops"); - run(&[exe], 4570, None, None, None) -} - fn hyper_http(exe: &str) -> Result { let port = get_port(); println!("http_benchmark testing RUST hyper");