diff --git a/test/AbpPerfTest/AbpPerfTest.WithAbp/AppModule.cs b/test/AbpPerfTest/AbpPerfTest.WithAbp/AppModule.cs index 3846cdd3de..1cd88989e6 100644 --- a/test/AbpPerfTest/AbpPerfTest.WithAbp/AppModule.cs +++ b/test/AbpPerfTest/AbpPerfTest.WithAbp/AppModule.cs @@ -33,7 +33,7 @@ namespace AbpPerfTest.WithAbp Configure(options => { - options.TransactionBehavior = UnitOfWorkTransactionBehavior.Auto; + options.TransactionBehavior = UnitOfWorkTransactionBehavior.Disabled; }); } diff --git a/test/AbpPerfTest/AbpPerfTest.WithAbp/Controllers/BookController.cs b/test/AbpPerfTest/AbpPerfTest.WithAbp/Controllers/BookController.cs index 1533e95f71..7c78937342 100644 --- a/test/AbpPerfTest/AbpPerfTest.WithAbp/Controllers/BookController.cs +++ b/test/AbpPerfTest/AbpPerfTest.WithAbp/Controllers/BookController.cs @@ -5,6 +5,7 @@ using System.Threading.Tasks; using AbpPerfTest.WithAbp.Dtos; using AbpPerfTest.WithAbp.Entities; using Microsoft.AspNetCore.Mvc; +using Microsoft.EntityFrameworkCore; using Volo.Abp.Domain.Repositories; namespace AbpPerfTest.WithAbp.Controllers @@ -22,7 +23,7 @@ namespace AbpPerfTest.WithAbp.Controllers [HttpGet] public async Task> GetListAsync() { - var books = await _bookRepository.GetPagedListAsync(0, 10, "Id"); + var books = await _bookRepository.OrderBy(x => x.Id).Take(10).ToListAsync(); return books .Select(b => new BookDto diff --git a/test/AbpPerfTest/_jmeter/SimpleTestPlan.jmx b/test/AbpPerfTest/_jmeter/SimpleTestPlan.jmx index ea7ea15bde..24327e6e14 100644 --- a/test/AbpPerfTest/_jmeter/SimpleTestPlan.jmx +++ b/test/AbpPerfTest/_jmeter/SimpleTestPlan.jmx @@ -1,5 +1,5 @@ - + @@ -43,7 +43,7 @@ localhost - 5000 + 5001 https /api/books/ @@ -70,7 +70,7 @@ localhost - 5000 + 5001 https api/books/${BookId} @@ -84,7 +84,7 @@ - + true @@ -101,7 +101,7 @@ localhost - 5000 + 5001 https /api/books/${BookId} @@ -115,12 +115,12 @@ - + localhost - 5000 + 5001 https /api/books @@ -139,7 +139,7 @@ localhost - 5000 + 5001 https /api/books/${BookId} diff --git a/test/AbpPerfTest/_jmeter/SimpleTestPlanWithoutAbp.jmx b/test/AbpPerfTest/_jmeter/SimpleTestPlanWithoutAbp.jmx index f51d9c0237..39f188daf3 100644 --- a/test/AbpPerfTest/_jmeter/SimpleTestPlanWithoutAbp.jmx +++ b/test/AbpPerfTest/_jmeter/SimpleTestPlanWithoutAbp.jmx @@ -1,5 +1,5 @@ - + @@ -43,7 +43,7 @@ localhost - 5001 + 5003 https /api/books/ @@ -70,7 +70,7 @@ localhost - 5001 + 5003 https api/books/${BookId} @@ -84,7 +84,7 @@ - + true @@ -101,7 +101,7 @@ localhost - 5001 + 5003 https /api/books/${BookId} @@ -115,12 +115,12 @@ - + localhost - 5001 + 5003 https /api/books @@ -139,7 +139,7 @@ localhost - 5001 + 5003 https /api/books/${BookId}