diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-04-26 23:59:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 21:59:32 +0000 |
commit | 7415aff983333ae45badfd43c3db35d39ad37b79 (patch) | |
tree | a6bea2f24ba181b4dcaec0e72345bc5e0057f7a7 | |
parent | 3d8a4d3b81e107bbb152ad69047f64d16ca800f3 (diff) |
bench: fix more benchmarks (#18864)
-rw-r--r-- | cli/bench/http.rs | 1 | ||||
-rw-r--r-- | cli/bench/http/deno_flash_send_file.js | 2 | ||||
-rw-r--r-- | cli/bench/http/deno_http_serve.js | 2 | ||||
-rw-r--r-- | cli/bench/http/deno_http_serve_https.js | 2 | ||||
-rw-r--r-- | cli/bench/testdata/deno_upgrade_http.js | 2 |
5 files changed, 5 insertions, 4 deletions
diff --git a/cli/bench/http.rs b/cli/bench/http.rs index 4f8ab968f..031e9801c 100644 --- a/cli/bench/http.rs +++ b/cli/bench/http.rs @@ -99,6 +99,7 @@ pub fn benchmark( "run", "--allow-all", "--unstable", + "--enable-testing-features-do-not-use", path, &server_addr(port), ], diff --git a/cli/bench/http/deno_flash_send_file.js b/cli/bench/http/deno_flash_send_file.js index b613a6164..979b80bf4 100644 --- a/cli/bench/http/deno_flash_send_file.js +++ b/cli/bench/http/deno_flash_send_file.js @@ -11,4 +11,4 @@ function handler() { return new Response(file.readable); } -serve(handler, { hostname, port: Number(port) }); +serve({ hostname, port: Number(port) }, handler); diff --git a/cli/bench/http/deno_http_serve.js b/cli/bench/http/deno_http_serve.js index a0db62630..989dc82e8 100644 --- a/cli/bench/http/deno_http_serve.js +++ b/cli/bench/http/deno_http_serve.js @@ -8,4 +8,4 @@ function handler() { return new Response("Hello World"); } -serve(handler, { hostname, port, reusePort: true }); +serve({ hostname, port, reusePort: true }, handler); diff --git a/cli/bench/http/deno_http_serve_https.js b/cli/bench/http/deno_http_serve_https.js index cea659e09..17b403394 100644 --- a/cli/bench/http/deno_http_serve_https.js +++ b/cli/bench/http/deno_http_serve_https.js @@ -15,4 +15,4 @@ function handler() { return new Response("Hello World"); } -serve(handler, { hostname, port, reusePort: true, cert: CERT, key: KEY }); +serve({ hostname, port, reusePort: true, cert: CERT, key: KEY }, handler); diff --git a/cli/bench/testdata/deno_upgrade_http.js b/cli/bench/testdata/deno_upgrade_http.js index ca5533411..a959846ce 100644 --- a/cli/bench/testdata/deno_upgrade_http.js +++ b/cli/bench/testdata/deno_upgrade_http.js @@ -9,4 +9,4 @@ async function handler(req) { await conn.close(); } -serve(handler, { hostname: "127.0.0.1", port: 9000 }); +serve({ hostname: "127.0.0.1", port: 9000 }, handler); |