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:
parent
3d8a4d3b81
commit
7415aff983
5 changed files with 5 additions and 4 deletions
|
@ -99,6 +99,7 @@ pub fn benchmark(
|
|||
"run",
|
||||
"--allow-all",
|
||||
"--unstable",
|
||||
"--enable-testing-features-do-not-use",
|
||||
path,
|
||||
&server_addr(port),
|
||||
],
|
||||
|
|
|
@ -11,4 +11,4 @@ function handler() {
|
|||
return new Response(file.readable);
|
||||
}
|
||||
|
||||
serve(handler, { hostname, port: Number(port) });
|
||||
serve({ hostname, port: Number(port) }, handler);
|
||||
|
|
|
@ -8,4 +8,4 @@ function handler() {
|
|||
return new Response("Hello World");
|
||||
}
|
||||
|
||||
serve(handler, { hostname, port, reusePort: true });
|
||||
serve({ hostname, port, reusePort: true }, handler);
|
||||
|
|
|
@ -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);
|
||||
|
|
2
cli/bench/testdata/deno_upgrade_http.js
vendored
2
cli/bench/testdata/deno_upgrade_http.js
vendored
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue