Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Only 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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: