Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-799

Low performance compared with the community driver

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 0.2.0
    • Component/s: Performance
    • Environment:
      Windows 10 pro, mongodb 4.0.5 Community, go1.11.5

      I had been using the [community golang driver |github.com/globalsign/mgo] for the past 2 years, and recenly I've decided to try the official driver fo golang since it went in beta.

      Everything worked fine, but of course I was very curious how it performs in terms of speed with the old driver and I was pretty disappointed.

      I have a 30 million documents collection for testing purposes, and for this test I've selected a single document by _id and I've used bombardier to do 10000 requests with 100 request concurrency.

      The results are:

      • Official MongoDb driver: ~ 10k req/second
      • Community MongoDb driver: ~ 20k req/second

      Any thoughts?

            Assignee:
            Unassigned Unassigned
            Reporter:
            edi.ultras@gmail.com edward Marinescu
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: