diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-06-29 16:57:19 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-29 16:57:19 +0530 |
commit | 5eb9abd65f97e43b50aeb724deb8e3b7847681e9 (patch) | |
tree | a59b562fbba383ca17ec02c768db9d77c282d870 /cli/bench/http | |
parent | 91570ba6e85ae927f0979c0d2dde5684cb6823ff (diff) |
chore(cli/bench): Add bun HTTP server (#15004)
Diffstat (limited to 'cli/bench/http')
-rw-r--r-- | cli/bench/http/bun_http.js | 8 |
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), +}); |