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 | |
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')
-rw-r--r-- | cli/bench/http/deno_http_serve_https.js | 18 | ||||
-rw-r--r-- | cli/bench/lsp_bench_standalone.rs | 2 |
2 files changed, 1 insertions, 19 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); diff --git a/cli/bench/lsp_bench_standalone.rs b/cli/bench/lsp_bench_standalone.rs index 60d5be2d1..b3b1f2d92 100644 --- a/cli/bench/lsp_bench_standalone.rs +++ b/cli/bench/lsp_bench_standalone.rs @@ -11,7 +11,7 @@ use test_util::lsp::LspClientBuilder; // Intended to match the benchmark in quick-lint-js // https://github.com/quick-lint/quick-lint-js/blob/35207e6616267c6c81be63f47ce97ec2452d60df/benchmark/benchmark-lsp/lsp-benchmarks.cpp#L223-L268 fn incremental_change_wait(bench: &mut Bencher) { - let mut client = LspClientBuilder::new().build(); + let mut client = LspClientBuilder::new().use_diagnostic_sync(false).build(); client.initialize_default(); client.write_notification( |