diff options
Diffstat (limited to 'bench/fetch')
-rw-r--r-- | bench/fetch/bun.js | 4 | ||||
-rw-r--r-- | bench/fetch/deno.js | 4 | ||||
-rw-r--r-- | bench/fetch/node.mjs | 4 |
3 files changed, 3 insertions, 9 deletions
diff --git a/bench/fetch/bun.js b/bench/fetch/bun.js index 7559b467e..96e7275a8 100644 --- a/bench/fetch/bun.js +++ b/bench/fetch/bun.js @@ -6,9 +6,7 @@ bench(`fetch(https://example.com) x ${count}`, async () => { const requests = new Array(count); for (let i = 0; i < requests.length; i++) { - requests[i] = fetch(`https://www.example.com/?cachebust=${i}`).then((r) => - r.text(), - ); + requests[i] = fetch(`https://www.example.com/?cachebust=${i}`).then(r => r.text()); } await Promise.all(requests); diff --git a/bench/fetch/deno.js b/bench/fetch/deno.js index 3eef41698..1117a38df 100644 --- a/bench/fetch/deno.js +++ b/bench/fetch/deno.js @@ -6,9 +6,7 @@ bench(`fetch(https://example.com) x ${count}`, async () => { const requests = new Array(count); for (let i = 0; i < requests.length; i++) { - requests[i] = fetch(`https://www.example.com/?cachebust=${i}`).then((r) => - r.text(), - ); + requests[i] = fetch(`https://www.example.com/?cachebust=${i}`).then(r => r.text()); } await Promise.all(requests); diff --git a/bench/fetch/node.mjs b/bench/fetch/node.mjs index f61eeb0c6..96e7275a8 100644 --- a/bench/fetch/node.mjs +++ b/bench/fetch/node.mjs @@ -6,9 +6,7 @@ bench(`fetch(https://example.com) x ${count}`, async () => { const requests = new Array(count); for (let i = 0; i < requests.length; i++) { - requests[i] = fetch(`https://www.example.com/?cachebust=${i}`).then((r) => - r.text() - ); + requests[i] = fetch(`https://www.example.com/?cachebust=${i}`).then(r => r.text()); } await Promise.all(requests); |