Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Async Serial vs Parallel
(version: 1)
Comparing performance of:
Serial vs Parallel
Created:
10 months ago
by:
Guest
Jump to the latest result
Script Preparation code:
async function getValue(value) { return new Promise(resolve => { setTimeout(() => { resolve(value); }, 1000); }); }
Tests:
Serial
[Async/Deferred]
const a = await getValue(1) const b = await getValue(2) console.log(a + b) deferred.resolve()
Parallel
[Async/Deferred]
const a = getValue(1) const b = getValue(2) console.log(await a + await b) deferred.resolve()
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Serial
Parallel
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
10 months ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 OPR/122.0.0.0 (Edition developer)
Browser/OS:
Opera 122 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Serial
0.5 Ops/sec
Parallel
1.0 Ops/sec
Related benchmarks:
Multipromise resulter
async for vs promise all (setTimeout version)
async for vs promise.all2
async for vs promise.all /w delay
Awaiting sync vs async 2
async for vs promise.all vs for await
Error handling in async await vs old way
promise vs callback vs async
Async Test
Comments
Confirm delete:
Do you really want to delete benchmark?