Skip to content

Commit

Permalink
chore: update undici-fetch to fair benchmarks (nodejs#1283)
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS authored and metcoder95 committed Dec 26, 2022
1 parent eb59a4f commit dd10139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/benchmark.js
Expand Up @@ -246,7 +246,7 @@ cronometro(
'undici - fetch' () {
return makeParallelRequests(resolve => {
fetch(dest.url).then(res => {
res.text().then(resolve)
res.body.pipeTo(new WritableStream({ write () {}, close () { resolve() } }))
})
})
}
Expand Down

0 comments on commit dd10139

Please sign in to comment.