Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event Loop performance different in different version #3512

Closed
pandaCure opened this issue Aug 24, 2021 · 2 comments
Closed

Event Loop performance different in different version #3512

pandaCure opened this issue Aug 24, 2021 · 2 comments
Labels

Comments

@pandaCure
Copy link

pandaCure commented Aug 24, 2021

  • Node.js Version: v15.7.0 & v10.18.1
  • OS: mac
  • Scope (install, code, runtime, meta, other?):
  • Module (and version) (if relevant):
setTimeout(() => {
  console.log(1);
  Promise.resolve().then(() => {
    console.log(2);
  });
}, 100);
setTimeout(() => {
  console.log(3);
  Promise.resolve().then(() => {
    console.log(4);
  });
}, 100);
// version v10.18.1 1 3 2 4
// version v15.7.0 1 2 3 4
@Ayase-252
Copy link
Member

Execution order between timer queue, next-tickers and microtask queue was changed in Node.js v11

Refs: nodejs/node#22842

@gireeshpunathil
Copy link
Member

closing as answered, pls reopen if there is anything outstanding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants