Skip to content

A Simple Benchmark Template Using Benchmark.Net

License

Notifications You must be signed in to change notification settings

MrAliSalehi/BenchmarkTemplate

Repository files navigation

Benchmark Template

This Is A Visual Studio Template For Benchmarking Using Benchmark.Net.

How To Use :

Just Clone This Repo And Add It To Your Vs

Some Tip's

  • Do Not Run Your Benchmarks On Debug-mode/ Debugger-Attached.

  • Dot Not Use Static Methods For Benchmarking.

  • You Can Use [MemoryDiagnoser] Attribute On Top Of Your Class To See Memory Status For Benchmark,

    • You Can Also Pass True If You Wish To See Gc Column's Or False To Ignore them.
  • [Benchmark] Attribute Is Required in Top of The Methods That You Want To Benchmark It.

  • You Methods Can Be void.

  • Always Create Separated Class For Benchmark In Order To Pass it Down To BenchmarkRunner.Run<MyClass>()

also this is an real example of benchmarking in dotnet; this repo and this file.

Have Fun.

About

A Simple Benchmark Template Using Benchmark.Net

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages