[CSHARP-1829] Concurrency benchmark unable to utilize all available cores Created: 16/Nov/16  Updated: 08/Jun/23  Resolved: 08/Jun/23

Status: Closed
Project: C# Driver
Component/s: Performance
Affects Version/s: 2.3
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Nico Francois Assignee: Unassigned
Resolution: Duplicate Votes: 1
Labels: size-medium
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File drivers_benchmark.tar    
Issue Links:
Duplicate
duplicates CSHARP-4670 Implement Drivers Performance Benchma... Closed
Quarter: FY22Q2
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

The driver doesn't perform as well as other comparable drivers in a benchmark related to overall throughput. It doesn't appear that individual operations are slower as noted by other benchmarks, but a general slowness when under a heavy load of concurrent operations over an extended period of time.

Original

@MongoDB Europe16 John Page talked about the performance of all the different drivers in different languages.

It was observed out the C# driver was significantly slower than it should be, since you would expect it to be in the same league as the Java driver (and it is a factor of X slower).

The result was similar in .NET 4.6 and .NET Core.

So I'm creating this issue to help keep track of what can be done to "fix" this apparent problem/bug.



 Comments   
Comment by John Page [ 01/Apr/21 ]

Attaching the Benchmarks I ran - comparing all the different drivers sync/async - C,Python,Java,DotNet,Golang etc.

drivers_benchmark.tar

Comment by Nico Francois [ 10/Jan/17 ]

Any news on this issue?

Comment by John Page [ 21/Nov/16 ]

craiggwilson - Did I give you all the code samples you need, they are in an internal repository but I dont know if you have access.

Comment by Nico Francois [ 16/Nov/16 ]

Great to hear this!

We are considering using MongoDB as the database for our new platform using .NET Core micro-services, so we'd love to see this identified and fixed.

Comment by Craig Wilson [ 16/Nov/16 ]

Thanks Nico,

We are aware of John's presentation and are working on identifying the cause and whether it's an actual issue or a setup/configuration problem.

Craig

Generated at Wed Feb 07 21:40:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.