summaryrefslogtreecommitdiff
path: root/cli/bench/http/bun_http.js
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2022-06-29 16:57:19 +0530
committerGitHub <noreply@github.com>2022-06-29 16:57:19 +0530
commit5eb9abd65f97e43b50aeb724deb8e3b7847681e9 (patch)
treea59b562fbba383ca17ec02c768db9d77c282d870 /cli/bench/http/bun_http.js
parent91570ba6e85ae927f0979c0d2dde5684cb6823ff (diff)
chore(cli/bench): Add bun HTTP server (#15004)
Diffstat (limited to 'cli/bench/http/bun_http.js')
-rw-r--r--cli/bench/http/bun_http.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/bench/http/bun_http.js b/cli/bench/http/bun_http.js
new file mode 100644
index 000000000..a4cd2c562
--- /dev/null
+++ b/cli/bench/http/bun_http.js
@@ -0,0 +1,8 @@
+// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+const port = Bun.argv[2] || "4545";
+Bun.serve({
+ fetch(_req) {
+ return new Response("Hello World");
+ },
+ port: Number(port),
+});