summaryrefslogtreecommitdiff
path: root/cli/bench/http/bun_http.js
diff options
context:
space:
mode:
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),
+});