Files
Umbraco-CMS/src/Umbraco.Tests.Benchmarks/Program.cs
2016-11-14 18:13:45 +01:00

31 lines
761 B
C#

using System;
using System.Reflection;
using BenchmarkDotNet.Running;
namespace Umbraco.Tests.Benchmarks
{
internal class Program
{
public static void Main(string[] args)
{
if (args.Length == 1)
{
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("?");
}
}
}
}