BenchmarkDotNet is a lightweight, open up source, highly effective .Web library that can transform your solutions into benchmarks, monitor individuals solutions, and then present insights into the effectiveness details captured. It is straightforward to publish BenchmarkDotNet benchmarks and the outcomes of the benchmarking procedure are consumer friendly as effectively.

You can just take benefit of BenchmarkDotNet to benchmark the two .Web Framework and .Web Core programs. In this posting we’ll discover how we can get the job done with BenchmarkDotNet in .Web Core. You can find BenchmarkDotNet on GitHub.

To get the job done with the code illustrations furnished in this posting, you need to have Visible Studio 2019 installed in your process. If you really don’t currently have a duplicate, you can down load Visible Studio 2019 below. 

Build a console software challenge in Visible Studio

Initial off, let us create a .Web Core console software challenge in Visible Studio. Assuming Visible Studio 2019 is installed in your process, abide by the steps outlined down below to create a new .Web Core console software challenge in Visible Studio.

  1. Launch the Visible Studio IDE.
  2. Simply click on “Create new challenge.”
  3. In the “Create new project” window, choose “Console Application (.Web Core)” from the list of templates displayed.
  4. Simply click Next.
  5. In the “Configure your new project” window revealed next, specify the identify and site for the new challenge.
  6. Simply click Build.

This will create a new .Web Core console software challenge in Visible Studio 2019.

Notice that when you create the console software challenge, the resulting Program course (produced routinely in the Program.cs file) will search like this:

Copyright © 2020 IDG Communications, Inc.