Yaser Moradi
1 min readDec 9, 2017

--

Thanks for your efforts. To improve asp.net core results, you can do followings:

1- Change Platform from its default value (AnyCPU) to (X64)

2- Use following code for Program.cs

using Microsoft.AspNetCore.Hosting;
using System.IO;
namespace AspNetCorePerformanceTests
{
public class Program
{
public static void Main(string[] args)
{
IWebHost host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseStartup<Startup>()
.Build();
host.Run();
}
}
}

3- In launchSettings.json change environments from Development to Production

Performance gets better, due removing loggers, improving CPU processing, switching from dev to production.

Commit link

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Responses (1)