Files
Umbraco-CMS/src/Umbraco.Tests.Benchmarks/Program.cs

31 lines
761 B
C#
Raw Normal View History

using System;
2016-10-28 14:33:44 +02:00
using System.Reflection;
using BenchmarkDotNet.Running;
namespace Umbraco.Tests.Benchmarks
{
2016-10-28 14:33:44 +02:00
internal class Program
{
2016-10-28 14:33:44 +02:00
public static void Main(string[] args)
{
if (args.Length == 1)
2016-10-28 14:33:44 +02:00
{
var type = Assembly.GetExecutingAssembly().GetType("Umbraco.Tests.Benchmarks." +args[0]);
if (type == null)
{
Console.WriteLine("Unknown benchmark.");
}
else
{
var summary = BenchmarkRunner.Run(type);
Console.ReadLine();
}
}
else
{
Console.WriteLine("?");
}
}
}
}