This commit is contained in:
sunkaixuan 2017-09-21 14:54:51 +08:00
parent 9524dbce95
commit 4d13f7a2b1
2 changed files with 5 additions and 2 deletions

View File

@ -74,7 +74,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\SqlSugar\SqlSugar.csproj"> <ProjectReference Include="..\SqlSugar\SqlSugar.csproj">
<Project>{489BB790-226C-4FAD-8D1E-51D72A7FF8E5}</Project> <Project>{489bb790-226c-4fad-8d1e-51d72a7ff8e5}</Project>
<Name>SqlSugar</Name> <Name>SqlSugar</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>

View File

@ -17,7 +17,8 @@ namespace PerformanceTest.TestItems
Console.WriteLine("测试一次读取1条数据的速度"); Console.WriteLine("测试一次读取1条数据的速度");
var eachCount = 1000; var eachCount = 1000;
for (int i = 0; i < 10; i++) var begin = DateTime.Now;
for (int i = 0; i < 20; i++)
{ {
switch (type) switch (type)
{ {
@ -31,6 +32,8 @@ namespace PerformanceTest.TestItems
break; break;
} }
} }
Console.Write("总计:"+(DateTime.Now-begin).TotalMilliseconds/1000.0);
} }
private static void SqlSugar(int eachCount) private static void SqlSugar(int eachCount)