diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-05-26 15:26:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-26 13:26:21 +0000 |
commit | d5a8a3d69fd7864d2f48d7524fc79bd9d8f51f53 (patch) | |
tree | e423434c69fc6f8f2ed62c40f204a13f6403ff7e /cli/bench/http/deno_http_serve_https.js | |
parent | 25cbd97ab7ef1866e58238f1c28ec0d86062aee8 (diff) |
chore: remove useless benchmark (#19272)
This benchmark is useless and only gives several hundred thousand
messages of failure.
---------
Co-authored-by: David Sherret <dsherret@gmail.com>
Diffstat (limited to 'cli/bench/http/deno_http_serve_https.js')
-rw-r--r-- | cli/bench/http/deno_http_serve_https.js | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/cli/bench/http/deno_http_serve_https.js b/cli/bench/http/deno_http_serve_https.js deleted file mode 100644 index 17b403394..000000000 --- a/cli/bench/http/deno_http_serve_https.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2018-2023 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; - -function readFileSync(file) { - return Deno.readTextFileSync(new URL(file, import.meta.url).pathname); -} - -const CERT = readFileSync("../../tests/testdata/tls/localhost.crt"); -const KEY = readFileSync("../../tests/testdata/tls/localhost.key"); - -function handler() { - return new Response("Hello World"); -} - -serve({ hostname, port, reusePort: true, cert: CERT, key: KEY }, handler); |