diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-10-24 22:19:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-24 23:19:58 +0200 |
commit | fd8bf0827104407dca12fa57259a0d32380adcd5 (patch) | |
tree | 2432b0e08fabc050910446d043d93243610b1e1b /cli/bench/http/deno_flash_send_file.js | |
parent | 09e36d41b007604378525828047085cbaa7b948c (diff) |
bench: remove http benchmarks (#26484)
These benchmarks run on GitHub Actions and are extremely noisy, thus
not providing much value.
Diffstat (limited to 'cli/bench/http/deno_flash_send_file.js')
-rw-r--r-- | cli/bench/http/deno_flash_send_file.js | 14 |
1 files changed, 0 insertions, 14 deletions
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); |