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>
This commit is contained in:
Bartek Iwańczuk 2023-05-26 15:26:21 +02:00 committed by GitHub
parent 25cbd97ab7
commit d5a8a3d69f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 19 deletions

View file

@ -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);

View file

@ -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(