Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-4611

Performance-Regression - Simple Find Query - Node16 vs Node18

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: 4.9.1
    • Component/s: None
    • Not Needed

      What problem are you facing?

      Signifikant performance regression (~20%) for simple Find-Queries after Node-Version-Upgrade.

      What driver and relevant dependency versions are you using?

      MongoDB-Version: 4.2
      MongoDB-Node-Driver: 4.9.1

      NodeJS-Version: 16.15.1
      NodeJS-Version: 18.8.0

      Steps to reproduce?

      See attached simple file.
      -> Create some data (it seems like count is more important than size of the documents)
      -> Execute simple Find-Queries

      My times from the attached file:
      Node16:
      async iteration: 2.144s
      toArray: 2.080s

      Node18:
      async iteration: 2.606s
      toArray: 2.493s

        1. index.js
          0.8 kB
        2. Screenshot 2022-09-07 at 15.48.13.png
          Screenshot 2022-09-07 at 15.48.13.png
          63 kB

            Assignee:
            Unassigned Unassigned
            Reporter:
            haser@videmo.de Yannick Haser
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: