BenchmarkDotNet | Baseline ve Jobs 3. Kısım

BenchmarkDotNet içerisinde baseline ve Jobs konularına baktık bu videoda. Bu video benchmarkdotnet içerisinde şu konulara göz attık;

💎 Baseline

[Benchmark(baseline = true)]

public void Sleep200() ==> Thread.Sleep(200);

💎 SimpleJobs

[SimpleJob]

💎 RunStrategy

[SimpleJob(runStrategy: RunStrategy.Throughput)] 

💎 RuntimeMoniker

[SimpleJob(runtimeMoniker: RuntimeMoniker.Net50)] 

💎 Orderer

[Orderer(SummaryOrderPolicy.SlowestToFastest)]

Özellikle RuntimeMoniker kullanırken seçtiğiniz ortamlara ait SDK’ları bilgisayarınıza kurmayı ve projenizin csproj dosyasına hedef ortam bilgisini TargetFrameworks tag’leri arasına yazmayı unutmayın.

Kaynak: https://benchmarkdotnet.org/articles/overview.html

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.