await vs not (v3)

Revision 3 of this benchmark created on


Setup

const asyncAdd = async (a,b) => (a + b);

Test runner

Ready to run.

Testing in
TestOps/sec
Without await

const f = async () => {
   return asyncAdd(2, 3);
};

return f();
ready
With await
const f = async () => {
   return await asyncAdd(2, 3);
};

return f();
ready

Revisions

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