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

Low performance compared with the community driver

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 0.2.0
    • Performance
    • Windows 10 pro, mongodb 4.0.5 Community, go1.11.5

    Description

      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?

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: