Skip to main content
Benchmark of Querying Special Dictionary Containers

Result

Querying 1,000,000 times with 1,000,000 elements:

Container Mean(ms) Min(ms) Max(ms) Range AllocatedBytes Operations Ratio of Mean(ms)
Dictionary 34.72 30.65 36.33 16% 170 656 1.00x
ConcurrentDictionary 129.94 128.51 131.43 2% 542 60 3.74x
ConditionalWeakTable 168.45 150.94 184.17 20% 542 236 4.85x

Haoyu JiaOriginalAbout 1 minCSharpFundamentalsContainers