From d5a8a3d69fd7864d2f48d7524fc79bd9d8f51f53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 26 May 2023 15:26:21 +0200 Subject: [PATCH] chore: remove useless benchmark (#19272) This benchmark is useless and only gives several hundred thousand messages of failure. --------- Co-authored-by: David Sherret --- cli/bench/http/deno_http_serve_https.js | 18 ------------------ cli/bench/lsp_bench_standalone.rs | 2 +- 2 files changed, 1 insertion(+), 19 deletions(-) delete mode 100644 cli/bench/http/deno_http_serve_https.js 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 17b4033945..0000000000 --- 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 60d5be2d17..b3b1f2d920 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(