mirror of
https://github.com/denoland/deno.git
synced 2024-11-05 09:04:41 -05:00
569287b15b
This commit adds a fast path to `Request` and `Response` that make consuming request bodies much faster when using `Body#text`, `Body#arrayBuffer`, and `Body#blob`, if the body is a FastStream. Because the response bodies for `fetch` are FastStream, this speeds up consuming `fetch` response bodies significantly.
5 lines
No EOL
158 B
Lua
5 lines
No EOL
158 B
Lua
wrk.method = "POST"
|
|
wrk.headers["Content-Type"] = "application/octet-stream"
|
|
|
|
file = io.open("./cli/bench/testdata/128k.bin", "rb")
|
|
wrk.body = file:read("*a") |