Merge branch 'dev-v7' into temp-U4-9105

This commit is contained in:
Stephan
2016-11-14 18:13:45 +01:00
72 changed files with 2265 additions and 1551 deletions

View File

@@ -1,20 +1,30 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Reflection;
using BenchmarkDotNet.Running;
namespace Umbraco.Tests.Benchmarks
{
class Program
internal class Program
{
static void Main(string[] args)
public static void Main(string[] args)
{
var summary = BenchmarkRunner.Run<ModelToSqlExpressionHelperBenchmarks>();
//var summary = BenchmarkRunner.Run<BulkInsertBenchmarks>();
Console.ReadLine();
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("?");
}
}
}
}