Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1642

mongosh 2.0.2 starts up significantly slower than 1.9.0

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.5
    • Affects Version/s: 2.0.0, 2.0.1, 2.0.2
    • Component/s: Performance
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Not Needed

      $ time mongosh-1.9.0-linux-x64/bin/mongosh --version
      1.9.0
      
      real    0m0,067s
      user    0m0,060s
      sys    0m0,016s
      $ time mongosh-2.0.0-linux-x64/bin/mongosh --version
      2.0.0
      
      real    0m0,159s
      user    0m0,123s
      sys    0m0,049s
      $ time mongosh-2.0.2-linux-x64/bin/mongosh --version
      2.0.2
      
      real    0m0,227s
      user    0m0,217s
      sys    0m0,034s
      13:53:20 addaleax:/tmp/u$ 
       

      It’s expected that 2.0.2 is a bit slower than 2.0.0 because of MONGOSH-1604/MONGOSH-1605 where we needed to temporarily disable startup snapshot support, but that should just leave 2.0.2 in the same performance range as 1.9.0, not show discrepancies this large.

            Assignee:
            Unassigned Unassigned
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: