Promise.all with vs without await

Benchmark created on


Setup

const asyncFunction = () => new Promise(resolve => setTimeout(resolve, 500));

// 5 times without await 
const asyncList = [asyncFunction, asyncFunction, asyncFunction, asyncFunction, asyncFunction];

Test runner

Ready to run.

Testing in
TestOps/sec
await called on Promise.all where argument is just the list with awaited functions
await Promise.all(asyncList.map(async (listItem) => await listItem));
ready
await called on Promise.all where argument is just the list with async functions
await Promise.all(asyncList);
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.