在windows下运行BenchmarkDotNet很简单,在vs 2017里 Ctrl + F5就ok了。 在Linux下,则需要用命令行: dotnet run -c Release 就是这么简单。