Promise.all with vs without await (v2)

Revision 2 of this 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
Promise.all(asyncList.map(async (listItem) => await listItem));
ready
await called on Promise.all where argument is just the list with async functions
Promise.all(asyncList);
ready

Revisions

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