Skip to content

Benchmark methods, test how long can each method take to excute. Test each method as 100s or even million times

Notifications You must be signed in to change notification settings

rizhwan/benchmark-methods

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

benchmark-methods

Test how long each method take to execute. Testas 100s or even million times.

Minimum platform versions that supported

.NET Core 1.0
.NET Framework 4.5
Mono 4.6

How to use

All you have to do to start running is to use

var benchmark = new Benchmark(1000);

var result1 = benchmark.AddMethod(() => ReverseCharacters.WithoutFramework(_randomSentance), "Method one");
var result2 = benchmark.AddMethod(() => ReverseCharacters.WithFramework(_randomSentance), "Method two");

Note

Even Though the library written for .NET Standard 1.0, the sample test written on .net core 3.0. https://docs.microsoft.com/en-us/dotnet/standard/net-standard#net-implementation-support

Changes

About

Benchmark methods, test how long can each method take to excute. Test each method as 100s or even million times

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages