Add initial benchmarking project

This commit is contained in:
Daniel Cronqvist 2024-07-28 23:50:16 +02:00
parent 94e6a12bad
commit 7e325ea95d
3 changed files with 59 additions and 0 deletions

View file

@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.13.12" />
<PackageReference Include="TiledLib" Version="4.0.3" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DotTiled\DotTiled.csproj" />
</ItemGroup>
</Project>

View file

@ -0,0 +1,34 @@
using System;
using System.Security.Cryptography;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
namespace MyBenchmarks
{
public class MapLoader
{
public MapLoader()
{
}
[Benchmark]
public DotTiled.Map LoadWithDotTiled()
{
throw new NotImplementedException();
}
[Benchmark]
public TiledLib.Map LoadWithTiledLib()
{
throw new NotImplementedException();
}
}
public class Program
{
public static void Main(string[] args)
{
//var summary = BenchmarkRunner.Run<Md5VsSha256>();
}
}
}