Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
sync for vs promise.all
(version: 0)
Comparing performance of:
syncFor vs asyncPromiseAll
Created:
one year ago
by:
Guest
Jump to the latest result
Script Preparation code:
async function syncFor(){ for (const x of [1, 2, 3]) { x > 0; } } async function asyncPromiseAll() { await Promise.all([1, 2, 3].map(x => new Promise(resolve => resolve(x > 0)) )); }
Tests:
syncFor
syncFor()
asyncPromiseAll
asyncPromiseAll()
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
syncFor
asyncPromiseAll
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?