1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

bench: fix more benchmarks (#18864)

This commit is contained in:
Bartek Iwańczuk 2023-04-26 23:59:32 +02:00 committed by GitHub
parent 3d8a4d3b81
commit 7415aff983
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 4 deletions

View file

@ -99,6 +99,7 @@ pub fn benchmark(
"run",
"--allow-all",
"--unstable",
"--enable-testing-features-do-not-use",
path,
&server_addr(port),
],

View file

@ -11,4 +11,4 @@ function handler() {
return new Response(file.readable);
}
serve(handler, { hostname, port: Number(port) });
serve({ hostname, port: Number(port) }, handler);

View file

@ -8,4 +8,4 @@ function handler() {
return new Response("Hello World");
}
serve(handler, { hostname, port, reusePort: true });
serve({ hostname, port, reusePort: true }, handler);

View file

@ -15,4 +15,4 @@ function handler() {
return new Response("Hello World");
}
serve(handler, { hostname, port, reusePort: true, cert: CERT, key: KEY });
serve({ hostname, port, reusePort: true, cert: CERT, key: KEY }, handler);

View file

@ -9,4 +9,4 @@ async function handler(req) {
await conn.close();
}
serve(handler, { hostname: "127.0.0.1", port: 9000 });
serve({ hostname: "127.0.0.1", port: 9000 }, handler);