using System; using System.IO; using Luneraria.Core.Tests; /// /// Measures the C# rules outside Unity with the shared CoreBenchmark (the Unity editor runs the /// same code through CoreBatch.Benchmark). Usage: /// dotnet run -c Release --project tools/dotnet/Luneraria.Core.Bench [out.json] /// public static class Program { public static int Main(string[] args) { string runtime = System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription; string json = CoreBenchmark.Run(runtime, runtime + ", Release build"); Console.Write(json); if (args.Length > 0) File.WriteAllText(args[0], json); return 0; } }