diff --git a/Src/Asp.Net/PerformanceTest/Program.cs b/Src/Asp.Net/PerformanceTest/Program.cs index 1c9ce18ff..e6c6bb0fe 100644 --- a/Src/Asp.Net/PerformanceTest/Program.cs +++ b/Src/Asp.Net/PerformanceTest/Program.cs @@ -8,9 +8,9 @@ namespace PerformanceTest { class Program { - + /// - /// 分开测试比较公平 + /// 注意注意注意注意注意:分开测试比较公平,并且请在Realse模式下启动程序(SqlSugar直接引用的是项目) /// /// static void Main(string[] args) diff --git a/Src/Asp.Net/PerformanceTest/TestItems/TestSql.cs b/Src/Asp.Net/PerformanceTest/TestItems/TestSql.cs index e59dca590..0d7dcb9c0 100644 --- a/Src/Asp.Net/PerformanceTest/TestItems/TestSql.cs +++ b/Src/Asp.Net/PerformanceTest/TestItems/TestSql.cs @@ -46,7 +46,7 @@ namespace PerformanceTest.TestItems { using (SqlSugarClient conn = Config.GetSugarConn()) { - var list2 = conn.Ado.SqlQuery("select top 10 * from Test"); ; + var list2 = conn.Ado.SqlQuery("select top 20 * from Test"); ; } }); } @@ -60,7 +60,7 @@ namespace PerformanceTest.TestItems { using (SqlConnection conn = new SqlConnection(Config.connectionString)) { - var list = conn.Query("select top 10 * from Test"); + var list = conn.Query("select top 20 * from Test"); } }); } @@ -74,7 +74,7 @@ namespace PerformanceTest.TestItems { using (EFContext conn = new EFContext(Config.connectionString)) { - var list = conn.Database.SqlQuery("select top 10 * from Test").ToList(); + var list = conn.Database.SqlQuery("select top 20 * from Test").ToList(); } }); }