The web API application performance can be measured by using various techniques. One of the most important measuring parameters is running load test on Web API.
We will use Apache HTTP Server Benchmarking Tool, also known as ab.exe. It's a tool for sending hundreds of concurrent requests on endpoints.
The end point we will be targeting is /api/contacttype, the action methods are GetAllContactTypes and GetAllContactTypeAsync.
Both the action methods call stored procedures from the database using Dapper ORM using synchronous and asynchronous ways. In the next section, we will learn in more detail about asynchronous web API using the async await keywords.
Refer to the link, https://httpd.apache.org/docs/2.4/programs/ab.html, for usage of the ab.exe tool, and then run the application and perform the load test. Upon running the command, we should...