-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(cli/bench): Add bun HTTP server (#15004)
- Loading branch information
1 parent
91570ba
commit 5eb9abd
Showing
4 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule third_party
updated
3 files
+ − | prebuilt/linux64/bun | |
+ − | prebuilt/mac/bun-aarch64 | |
+ − | prebuilt/mac/bun-x64 |