From fd8bf0827104407dca12fa57259a0d32380adcd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 24 Oct 2024 22:19:58 +0100 Subject: bench: remove http benchmarks (#26484) These benchmarks run on GitHub Actions and are extremely noisy, thus not providing much value. --- cli/bench/http/deno_flash_send_file.js | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 cli/bench/http/deno_flash_send_file.js (limited to 'cli/bench/http/deno_flash_send_file.js') diff --git a/cli/bench/http/deno_flash_send_file.js b/cli/bench/http/deno_flash_send_file.js deleted file mode 100644 index bf8541f8b..000000000 --- a/cli/bench/http/deno_flash_send_file.js +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. - -const addr = Deno.args[0] || "127.0.0.1:4500"; -const [hostname, port] = addr.split(":"); -const { serve } = Deno; - -const path = new URL("../testdata/128k.bin", import.meta.url).pathname; - -function handler() { - const file = Deno.openSync(path); - return new Response(file.readable); -} - -serve({ hostname, port: Number(port) }, handler); -- cgit v1.2.3