Skip to content

Event Loop performance different in different version #3512

Closed
@pandaCure

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

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