Catalog arrangement

This commit is contained in:
sunkaixuan
2017-06-22 12:55:03 +08:00
parent 47980cd682
commit fc0155ce44
182 changed files with 0 additions and 6 deletions

View File

@@ -0,0 +1,30 @@
using SyntacticSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OrmTest.PerformanceTesting
{
public class PerformanceBase
{
public int count = 100;
public void Execute(string title, Action fun)
{
PerformanceTest ptef = new PerformanceTest();
ptef.SetCount(count);//执行count次
ptef.Execute(
i =>
{
fun();
},
res =>
{
Console.WriteLine(string.Format("Execute {0} time{1}{2}", count, title, res));
});
}
}
}