summaryrefslogtreecommitdiff
path: root/cli/bench/http.rs
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@gmail.com>2021-04-12 21:55:05 +0200
committerGitHub <noreply@github.com>2021-04-12 15:55:05 -0400
commit46b1c653c0c433932908b7610f60b409af134c76 (patch)
tree00d8b59c8c4e9b90538d548ebd828d2b3f94d4fd /cli/bench/http.rs
parenta20504642d083172f297543f9788b128e9c2e0bc (diff)
refactor(deno): remove concept of bin & json ops (#10145)
Diffstat (limited to 'cli/bench/http.rs')
-rw-r--r--cli/bench/http.rs16
1 files changed, 2 insertions, 14 deletions
diff --git a/cli/bench/http.rs b/cli/bench/http.rs
index 690e26cf4..7fdab9844 100644
--- a/cli/bench/http.rs
+++ b/cli/bench/http.rs
@@ -21,9 +21,6 @@ pub(crate) fn benchmark(
let hyper_hello_exe = target_path.join("test_server");
let hyper_hello_exe = hyper_hello_exe.to_str().unwrap();
- let core_http_bin_ops_exe = target_path.join("examples/http_bench_bin_ops");
- let core_http_bin_ops_exe = core_http_bin_ops_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();
@@ -40,12 +37,8 @@ pub(crate) fn benchmark(
"deno_proxy_tcp".to_string(),
deno_tcp_proxy(deno_exe, hyper_hello_exe)?,
);
- // "core_http_bin_ops" was once called "deno_core_single"
- // "core_http_bin_ops" was once called "deno_core_http_bench"
- res.insert(
- "core_http_bin_ops".to_string(),
- core_http_bin_ops(core_http_bin_ops_exe)?,
- );
+ // "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)?,
@@ -246,11 +239,6 @@ fn deno_http_proxy(
)
}
-fn core_http_bin_ops(exe: &str) -> Result<HttpBenchmarkResult> {
- println!("http_benchmark testing CORE http_bench_bin_ops");
- run(&[exe], 4544, None, None)
-}
-
fn core_http_json_ops(exe: &str) -> Result<HttpBenchmarkResult> {
println!("http_benchmark testing CORE http_bench_json_ops");
run(&[exe], 4544, None, None)