Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

18 lines (15 sloc) 522 Bytes
using System.Threading;
using BenchmarkDotNet.Attributes;
namespace BenchmarkDotNet.Samples
{
// It is very easy to use BenchmarkDotNet. You should just create a class
public class IntroBasic
{
// And define a method with the Benchmark attribute
[Benchmark]
public void Sleep() => Thread.Sleep(10);
// You can write a description for your method.
[Benchmark(Description = "Thread.Sleep(10)")]
public void SleepWithDescription() => Thread.Sleep(10);
}
}
You can’t perform that action at this time.