Benchmarkdotnet: Suspicious warnings about MemoryMappedFiles

Created on 10 Apr 2017  路  4Comments  路  Source: dotnet/BenchmarkDotNet

Let's run my favorite benchmark (VS2017, classic console application, BenchmarkDotNet 0.10.3.91):

public class Test
{
    [Benchmark]
    public void Sleep() => Thread.Sleep(10);
}

Here is the build log:

// *** Build ***
BuildScript: W:\Sandbox\ConsoleApp1\ConsoleApp1\bin\Release\BDN.Generated.bat
.NET Framework was unable to load System.IO.MemoryMappedFiles, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, we couldn't find it neither, checked at W:\Sandbox\ConsoleApp1\ConsoleApp1\bin\Release\System.IO.MemoryMappedFiles.dll
.NET Framework was unable to load System.IO.MemoryMappedFiles, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, we couldn't find it neither, checked at W:\Sandbox\ConsoleApp1\ConsoleApp1\bin\Release\System.IO.MemoryMappedFiles.dll
.NET Framework was unable to load System.IO.MemoryMappedFiles, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, we couldn't find it neither, checked at W:\Sandbox\ConsoleApp1\ConsoleApp1\bin\Release\System.IO.MemoryMappedFiles.dll
.NET Framework was unable to load System.IO.MemoryMappedFiles, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, we couldn't find it neither, checked at W:\Sandbox\ConsoleApp1\ConsoleApp1\bin\Release\System.IO.MemoryMappedFiles.dll
.NET Framework was unable to load System.IO.MemoryMappedFiles, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, we couldn't find it neither, checked at W:\Sandbox\ConsoleApp1\ConsoleApp1\bin\Release\System.IO.MemoryMappedFiles.dll
.NET Framework was unable to load System.IO.MemoryMappedFiles, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, we couldn't find it neither, checked at W:\Sandbox\ConsoleApp1\ConsoleApp1\bin\Release\System.IO.MemoryMappedFiles.dll
.NET Framework was unable to load System.IO.MemoryMappedFiles, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, we couldn't find it neither, checked at W:\Sandbox\ConsoleApp1\ConsoleApp1\bin\Release\System.IO.MemoryMappedFiles.dll
.NET Framework was unable to load System.IO.MemoryMappedFiles, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, we couldn't find it neither, checked at W:\Sandbox\ConsoleApp1\ConsoleApp1\bin\Release\System.IO.MemoryMappedFiles.dll
// Result = Success

It doesn't affect benchmark results, I have a compiled project and a nice summary table.
However, I don't think that it's ok to have such warnings, probably we are doing something wrong here.

bug

All 4 comments

@adamsitnik, thanks!

@AndreyAkinshin you welcome! I just want to get rid of all the annoying bugs so we can focus on performance-specific things only

Yeah, it would be great! I already have some great precision-related changes in my local repo. =)

@AndreyAkinshin I am looking forward to your blog post(s) about these changes!

Was this page helpful?
0 / 5 - 0 ratings