Skip to content

Commit 5bea1bb

Browse files
committed
Prepare benchmarking project
1 parent 336a800 commit 5bea1bb

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

Benchmarking/Benchmarking.csproj

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net9.0</TargetFramework>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Nullable>enable</Nullable>
8+
<RootNamespace>DictionaryListBenchmarking</RootNamespace>
9+
</PropertyGroup>
10+
11+
<ItemGroup>
12+
<PackageReference Include="BenchmarkDotNet" Version="0.15.2" />
13+
</ItemGroup>
14+
15+
<ItemGroup>
16+
<ProjectReference Include="..\DictionaryList\DictionaryList.csproj" />
17+
</ItemGroup>
18+
19+
</Project>

Benchmarking/Program.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using BenchmarkDotNet.Running;
2+
3+
namespace DictionaryListBenchmarking;
4+
5+
internal static class Program
6+
{
7+
public static void Main(string[] args)
8+
{
9+
Console.WriteLine("Benchmarking the DictionaryList.");
10+
11+
// var summary = BenchmarkRunner.Run<BenchmarkTest>();
12+
}
13+
}

DictionaryList.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Microsoft Visual Studio Solution File, Format Version 12.00
33
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DictionaryList", "DictionaryList\DictionaryList.csproj", "{874D380C-1C32-4731-81EC-F26DEADD8553}"
44
EndProject
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Benchmarking", "Benchmarking\Benchmarking.csproj", "{A1329E66-92A6-4126-93EF-70D070A917FD}"
6+
EndProject
57
Global
68
GlobalSection(SolutionConfigurationPlatforms) = preSolution
79
Debug|Any CPU = Debug|Any CPU
@@ -12,5 +14,9 @@ Global
1214
{874D380C-1C32-4731-81EC-F26DEADD8553}.Debug|Any CPU.Build.0 = Debug|Any CPU
1315
{874D380C-1C32-4731-81EC-F26DEADD8553}.Release|Any CPU.ActiveCfg = Release|Any CPU
1416
{874D380C-1C32-4731-81EC-F26DEADD8553}.Release|Any CPU.Build.0 = Release|Any CPU
17+
{A1329E66-92A6-4126-93EF-70D070A917FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
18+
{A1329E66-92A6-4126-93EF-70D070A917FD}.Debug|Any CPU.Build.0 = Debug|Any CPU
19+
{A1329E66-92A6-4126-93EF-70D070A917FD}.Release|Any CPU.ActiveCfg = Release|Any CPU
20+
{A1329E66-92A6-4126-93EF-70D070A917FD}.Release|Any CPU.Build.0 = Release|Any CPU
1521
EndGlobalSection
1622
EndGlobal

0 commit comments

Comments
 (0)