aboutsummaryrefslogtreecommitdiff
path: root/bench/stream-file-upload-client/stream-file-deno.js
blob: a87d5625260ba6caa4ad686ea46cf94a9d3103a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
const file = await Deno.open(Deno.env.get("FILE") ?? "hello.txt", {
  read: true,
});

console.time("stream-file-deno");
const response = await fetch(Deno.env.get("URL") ?? "http://localhost:3000", {
  method: "POST",
  body: file.readable,
});
console.timeEnd("stream-file-deno");

console.log("Sent", await response.text(), "bytes");
-build-2'>single-file-build-2 Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/packages/astro/performance/.gitignore (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2023-07-11Filter out astro from `peerDependencies` in `astro add` (#7620)Gravatar Chris Swithinbank 2-1/+7
2023-07-11[ci] formatGravatar bluwy 1-1/+1
2023-07-11Refactor simple CLI commands (#7619)Gravatar Bjorn Lu 12-115/+123
2023-07-10fix: `astro info` command fallback for package manager (#7618)Gravatar Emanuele Stoppa 2-1/+7
2023-07-10Add CLI startup speed benchmark (#7617)Gravatar Bjorn Lu 5-11/+95
2023-07-10[ci] formatGravatar bluwy 1-1/+1