diff --git a/DotTiled.Benchmark/DotTiled.Benchmark.csproj b/DotTiled.Benchmark/DotTiled.Benchmark.csproj new file mode 100644 index 0000000..3fc12d3 --- /dev/null +++ b/DotTiled.Benchmark/DotTiled.Benchmark.csproj @@ -0,0 +1,19 @@ + + + + Exe + net8.0 + enable + enable + + + + + + + + + + + + diff --git a/DotTiled.Benchmark/Program.cs b/DotTiled.Benchmark/Program.cs new file mode 100644 index 0000000..c44b79b --- /dev/null +++ b/DotTiled.Benchmark/Program.cs @@ -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(); + } + } +} diff --git a/DotTiled.sln b/DotTiled.sln index 86b44df..421e996 100644 --- a/DotTiled.sln +++ b/DotTiled.sln @@ -7,6 +7,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotTiled", "DotTiled\DotTil EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotTiled.Tests", "DotTiled.Tests\DotTiled.Tests.csproj", "{C1311A5A-5206-467C-B323-B131CA11FDB8}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotTiled.Benchmark", "DotTiled.Benchmark\DotTiled.Benchmark.csproj", "{510F3077-8EA4-47D1-8D01-E2D538F1B899}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -24,5 +26,9 @@ Global {C1311A5A-5206-467C-B323-B131CA11FDB8}.Debug|Any CPU.Build.0 = Debug|Any CPU {C1311A5A-5206-467C-B323-B131CA11FDB8}.Release|Any CPU.ActiveCfg = Release|Any CPU {C1311A5A-5206-467C-B323-B131CA11FDB8}.Release|Any CPU.Build.0 = Release|Any CPU + {510F3077-8EA4-47D1-8D01-E2D538F1B899}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {510F3077-8EA4-47D1-8D01-E2D538F1B899}.Debug|Any CPU.Build.0 = Debug|Any CPU + {510F3077-8EA4-47D1-8D01-E2D538F1B899}.Release|Any CPU.ActiveCfg = Release|Any CPU + {510F3077-8EA4-47D1-8D01-E2D538F1B899}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal