Skip to content

fixer-m/RuntimePerformance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

.NET Core vs Framework: Common Collections Performance

This repo contains benchmarks to compare performance of common dotnet collections in .NET Core and .NET Framework.
This is addendum to my blog post: .NET Core vs Framework: Collections Performance (RU)
It uses BenchmarkDotNet for benchmarking and contains results from my PC as well.

Run steps

  • Install .NET Core 3.1, .NET Core 2.1, .NET Framework 4.8 (download)
  • Change build mode to Release
  • Open Program.cs and make adjustsments if needed (see below)
  • Run project

BenchmarkDotNet Options

There is a couple of options you may want to change in Program.cs.

var bdnArgs = new string[] { "--filter=RuntimePerformance.Collections*" };

Here you can pass any arguments to BenchmarkDotNet, for example - filter for benchmarks.
Set it to RuntimePerformance.Collections.List* if you want to run only List tests.
Full run can take 1 hour approx, so this can be useful.

return DefaultConfig.Instance.With(jobs).WithArtifactsPath(@"..\..\..\..\..\");

Here you can set ArtifactsPath - the results folder path.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages