.NET Collections Benchmark


A comprehensive performance comparison benchmark between different .NET collections.

.NET Collections Benchmark

Give it a Star! ⭐️


If you find this repository useful and like it, why not give it a star? if not, never mind! :)

Benchmarks


Benchmark of Collection Searching (Contains method) in terms of Execution Time (Mean)

Benchmark-SearchContains-Mean-Preview

Benchmark of Collection Searching (Contains method) in terms of Allocation Size

Benchmark-SearchContains-Allocated-Preview

Benchmark of Collection Initializing in terms of Execution Time (Mean)

Benchmark-Initialize-Mean-Preview

Benchmark of Collection Initializing in terms of Allocation Size

Benchmark-Initialize-Allocated-Preview

Benchmark of Collection Searching (TryGetValue method) in terms of Execution Time (Mean)

Benchmark-SearchTryGetValue-Mean-Preview

Benchmark of Collection Searching (TryGetValue method) in terms of Allocation Size

Benchmark-SearchTryGetValue-Allocated-Preview

BenchmarkDotNetVisualizer


All the benchmarks are created by BenchmarkDotNetVisualizer.

Useful Resources