性能对比

This commit is contained in:
skx
2020-11-27 19:01:30 +08:00
parent e351a33d83
commit 4cd25576fa
6 changed files with 126 additions and 5 deletions

View File

@@ -18,8 +18,8 @@ namespace PerformanceTest
{
InitData();
var type = DemoType.Insert;
var ormType = OrmType.EF;
var type = DemoType.GetById;
var ormType = OrmType.SqlSugar;
switch (type)
{
case DemoType.GetAll:
@@ -34,6 +34,9 @@ namespace PerformanceTest
case DemoType.Insert:
new TestInsert().Init(ormType);
break;
case DemoType.Like:
new TestLike().Init(ormType);
break;
default:
break;
}
@@ -78,7 +81,8 @@ namespace PerformanceTest
GetAll,
GetById,
GetSql,
Insert
Insert,
Like
}
}
}