From 5eb9abd65f97e43b50aeb724deb8e3b7847681e9 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Wed, 29 Jun 2022 16:57:19 +0530 Subject: chore(cli/bench): Add bun HTTP server (#15004) --- cli/bench/http/bun_http.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 cli/bench/http/bun_http.js (limited to 'cli/bench/http') 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), +}); -- cgit v1.2.3