Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
async vs sync 9i4ql
(version: 0)
Comparing performance of:
async vs sync vs Promise vs Promise await
Created:
2 years ago
by:
Guest
Jump to the latest result
Tests:
async
(async function asyncTest() { return undefined; })();
sync
(function asyncTest() { return undefined; })();
Promise
(function asyncTest() { return new Promise(r=>setTimeout(r,3000)); })();
Promise await
await (function asyncTest() { return new Promise(r=>setTimeout(r,3000)); })();
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (4)
Previous results
Fork
Test case name
Result
async
sync
Promise
Promise await
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Comments
Confirm delete:
Do you really want to delete benchmark?