Skip to content

Commit e90dcca

Browse files
committed
chore: moves benchmark to dedicated directory
Signed-off-by: Vincent Biret <[email protected]>
1 parent b7cb5f0 commit e90dcca

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

Microsoft.OpenApi.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.OpenApi.Hidi", "s
3030
EndProject
3131
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.OpenApi.Hidi.Tests", "test\Microsoft.OpenApi.Hidi.Tests\Microsoft.OpenApi.Hidi.Tests.csproj", "{6ADC5D41-EDD2-4206-B815-5DFF739C6832}"
3232
EndProject
33-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PerformanceTests", "performance\PerformanceTests.csproj", "{537E49E3-325E-40EE-A90E-7556D4D333AA}"
33+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PerformanceTests", "performance\benchmark\PerformanceTests.csproj", "{537E49E3-325E-40EE-A90E-7556D4D333AA}"
3434
EndProject
3535
Global
3636
GlobalSection(SolutionConfigurationPlatforms) = preSolution

performance/Benchmarks.cs renamed to performance/benchmark/Benchmarks.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
using System;
22
using BenchmarkDotNet;
33
using BenchmarkDotNet.Attributes;
4+
using Microsoft.OpenApi.Models;
45

56
namespace performance
67
{
8+
[MemoryDiagnoser]
9+
[JsonExporter]
710
public class Benchmarks
811
{
912
[Benchmark]
10-
public void Scenario1()
13+
public void EmptyDocument()
1114
{
12-
// Implement your benchmark here
15+
var document = new OpenApiDocument();
1316
}
1417

1518
[Benchmark]

performance/PerformanceTests.csproj renamed to performance/benchmark/PerformanceTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
<PackageReference Include="BenchmarkDotNet.Diagnostics.Windows" Version="0.14.0" />
1818
</ItemGroup>
1919
<ItemGroup>
20-
<ProjectReference Include="..\src\Microsoft.OpenApi\Microsoft.OpenApi.csproj" />
20+
<ProjectReference Include="..\..\src\Microsoft.OpenApi\Microsoft.OpenApi.csproj" />
2121
</ItemGroup>
2222
</Project>

performance/Program.cs renamed to performance/benchmark/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ public static void Main(string[] args)
1414
// var summaries = BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args, config);
1515
}
1616
}
17-
}
17+
}

0 commit comments

Comments
 (0)