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

Performance-Regression - Simple Find Query - Node16 vs Node18

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Unknown
    • Resolution: Duplicate
    • 4.9.1
    • None
    • None
    • Not Needed

    Description

      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

      Attachments

        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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: