rearrange
This commit is contained in:
21
tests/Roslyn.Benchmarks/ParseSolutionBenchmarks.cs
Normal file
21
tests/Roslyn.Benchmarks/ParseSolutionBenchmarks.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using BenchmarkDotNet.Attributes;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.MSBuild;
|
||||
|
||||
namespace Roslyn.Benchmarks;
|
||||
|
||||
public class ParseSolutionBenchmarks
|
||||
{
|
||||
private const string _solutionFilePath = "C:/Users/Matthew/Documents/Git/StatusApp/StatusApp.sln";
|
||||
|
||||
|
||||
//[IterationSetup]
|
||||
|
||||
[Benchmark]
|
||||
public async Task<Solution> ParseSolutionFileFromPath()
|
||||
{
|
||||
var workspace = MSBuildWorkspace.Create();
|
||||
var solution = await workspace.OpenSolutionAsync(_solutionFilePath);
|
||||
return solution;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user