mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
24 lines
785 B
C#
24 lines
785 B
C#
using BenchmarkDotNet.Configs;
|
|
using BenchmarkDotNet.Running;
|
|
using System;
|
|
|
|
namespace Robust.Benchmarks
|
|
{
|
|
internal static class Program
|
|
{
|
|
// --allCategories=ctg1,ctg2
|
|
// --anyCategories=ctg1,ctg2
|
|
public static void Main(string[] args)
|
|
{
|
|
#if DEBUG
|
|
Console.ForegroundColor = ConsoleColor.Red;
|
|
Console.WriteLine("\nWARNING: YOU ARE RUNNING A DEBUG BUILD, USE A RELEASE BUILD FOR AN ACCURATE BENCHMARK");
|
|
Console.WriteLine("THE DEBUG BUILD IS ONLY GOOD FOR FIXING A CRASHING BENCHMARK\n");
|
|
BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args, new DebugInProcessConfig());
|
|
#else
|
|
BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args);
|
|
#endif
|
|
}
|
|
}
|
|
}
|