Skip to content

Event Loop performance different in different version #3512

Description

@pandaCure
  • 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

Activity

  1. Ayase-252 commented on Aug 24, 2021

    @Ayase-252
    Member

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

    Refs: nodejs/node#22842

  2. gireeshpunathil commented on Dec 6, 2021

    @gireeshpunathil
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions