mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
-
This commit is contained in:
@@ -74,7 +74,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\SqlSugar\SqlSugar.csproj">
|
||||
<Project>{489BB790-226C-4FAD-8D1E-51D72A7FF8E5}</Project>
|
||||
<Project>{489bb790-226c-4fad-8d1e-51d72a7ff8e5}</Project>
|
||||
<Name>SqlSugar</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
|
@@ -17,7 +17,8 @@ namespace PerformanceTest.TestItems
|
||||
Console.WriteLine("测试一次读取1条数据的速度");
|
||||
var eachCount = 1000;
|
||||
|
||||
for (int i = 0; i < 10; i++)
|
||||
var begin = DateTime.Now;
|
||||
for (int i = 0; i < 20; i++)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
@@ -31,6 +32,8 @@ namespace PerformanceTest.TestItems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Console.Write("总计:"+(DateTime.Now-begin).TotalMilliseconds/1000.0);
|
||||
}
|
||||
|
||||
private static void SqlSugar(int eachCount)
|
||||
|
Reference in New Issue
Block a user