Skip to content
Permalink
Browse files

Added workaround for benchmarking ops issue

Need to perform a warmup so the workload jitting doesn't take too long
dotnet/BenchmarkDotNet#837
  • Loading branch information...
Turnerj committed Jan 3, 2019
1 parent bbd7d48 commit d4728bd32c51f939ad4a609341ec49a9069c7e48
Showing with 6 additions and 0 deletions.
  1. +6 −0 tests/InfinityCrawler.Tests.Benchmarks/BasicSiteCrawlBenchmark.cs
@@ -28,6 +28,12 @@ public BasicSiteCrawlBenchmark()
Crawler = new Crawler(client, new ParallelAsyncTaskHandler());
}

[GlobalSetup]
public async Task Setup()
{
await CrawlSite(); // benchmark warmup as a workaround for https://github.com/dotnet/BenchmarkDotNet/issues/837
}

[Benchmark]
public async Task CrawlSite()
{

0 comments on commit d4728bd

Please sign in to comment.
You can’t perform that action at this time.