API Performance Testing in Postman Canary

API Performance Testing in Postman Canary

API performance testing helps you gain confidence in the quality and reliability of your APIs, which helps you ensure a good user experience. An excellent feature is adding on postman canary, I am just using this. After API testing, anyone can also check performance testing on Postman. The goal of load testing is to let you observe and benchmark the performance of your APIs under expected real-world load. It also lets you identify performance bottlenecks and improve your API performance. 

No alt text provided for this image
Set up performance Test

Based on Performance metrics Result:

No alt text provided for this image
Viewing performance metrics

Once the run is completed, observe, and identify bottlenecks in response times and requests per second: 

No alt text provided for this image

 Get Started Now:

  1. Goto this site and download postman canary - Link
  2. After installation, select a Postman Collection or select an environment and click on Run:
  3. Select the Performance tab under Runner and, specify the load settings, click Start:
  4. Observe the response times and throughput (requests per second) in real-time
  5. Once the run is completed, observe, and identify bottlenecks in response times and requests per second



Some of the contexts will help you to understand performance evaluation:

No alt text provided for this image
Performance Details


  • Virtual users: While the test is running, Postman repeatedly runs the collection for each virtual user. A higher number of virtual users puts an increased load on your API.
  • Test duration in minutes.
  • Fixed - The number of virtual users you specified is used throughout the test.
  • Ramp up - Enter a Ramp up duration in minutes. During the ramp-up period, the number of virtual users gradually increases to the number of users you specified
  • Total requests sent - The total number of requests sent across all virtual users.
  • Requests/s - The number of requests sent each second by the performance test runner, a measure of throughput.
  • Avg. response time - The response time in milliseconds of all requests averaged together.
  • Error rate - The percentage of requests that result in an error. Responses other than 2xx responses are considered errors. 
  • Avg. response - The response time in milliseconds of all requests averaged together.
  • Min response - The lowest observed response time. ● Max response - The highest observed response time.
  • 99th percentile - 99% of all response times are equal to or less than this value.
  • 95th percentile - 95% of all response times are equal to or less than this value.
  • 90th percentile - 90% of all response times are equal to or less than this value. 


Why? API Performance Testing:

API performance testing involves testing your APIs by simulating real-world traffic and observing the behavior of your APIs with the given traffic. It is conducted to evaluate how well an API meets performance expectations, such as response time, throughput, and availability under different loads and stress conditions. This will help you to:

  1. Ensure your APIs can handle the expected load and check how the API responds to changes in the load (load is the number of parallel users hitting your APIs simultaneously).
  2. Optimize and improve the API performance for a better user experience.
  3. Identify any bottlenecks, latency, and failures and determine the system's scalability.

API performance can be measured by response times, throughput, and error rates under a simulated load. All these attributes affect the satisfaction of your API’s users.

Source: #Blog_Postman

Shafin Ahamed

IT Professional | Network & System Administration | Cybersecurity Enthusiast

2y

Informative

To view or add a comment, sign in

More articles by Md Salekin Newaz

Insights from the community

Others also viewed

Explore topics