From 7415aff983333ae45badfd43c3db35d39ad37b79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 26 Apr 2023 23:59:32 +0200 Subject: bench: fix more benchmarks (#18864) --- cli/bench/http/deno_flash_send_file.js | 2 +- cli/bench/http/deno_http_serve.js | 2 +- cli/bench/http/deno_http_serve_https.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/bench/http') 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); -- cgit v1.2.3