3 ms·
I'm quite surprised that the output of the examples is even supposed to be deterministic!
by Cakez0r 11y ago
I'm quite surprised that the output of the examples is even supposed to be deterministic!
- jinushaun 11y agoOnly because both the timeout and promises are pre-resolved. They both immediately "complete" their tasks, so the callbacks are immediately queued. That means you're measuring event loop queuing order, and ignoring execution time.