My application runs slower after consecutive http calls
My application runs slower after consecutive http calls I am running .Net Core 2.1 and NPGSQL 4.0 on a mac. I am doing performance tuning and trying to run 100 http requests and measure performance using Jmeter . As you can see below the 1st request takes 550 milli-seconds, 25th request takes 3.9 seconds and the last final 100th request takes 12.7 seconds . Is there something that I can do to improve the performance of my application ? I ran these tests in release mode and the database is returning every request within 40 milli-seconds. The requests are suppose to be executed all-together but by the times you can see that every request takes longer than the previous one . public class HomeController : Controller { public static string ConnectionString = "Host=localhost;Username=postgres;Password=password;" + "Database=dbname;port=port;CommandTimeout=50000;TIMEOUT=1024;POOLING=True;MINPOOLSIZE=1;MAXPOOLSIZE=100"; public async Task<String> Te...