Maruti
Maruti

Reputation: 11

how do we conclude restful api performance is good by using jmeter

I'm testing performance for restful API using Jmeter. So just I want to know that how could I verify its performance whether good or bad based on what type of validation & verification.

Upvotes: 1

Views: 477

Answers (2)

Dmitri T
Dmitri T

Reputation: 168147

There is no criteria for "good" or "bad" performance. In general people are looking for the following answers:

  • Is the system capable of serving anticipated number of users within reasonable response time
  • In case of peak load how does the system behave?
  • In case of stress load - what happens (data loss, processes shutdown, servers overloading/rebooting, etc.)? Does system recover when the load goes back to normal?
  • What are bottlenecks and their causes (poor code quality, non-optimal configuration, network issues, etc.)?

Reference material:

Upvotes: 1

Adi Levin
Adi Levin

Reputation: 5243

Start with writing down your performance requirements. The requirements should cover both latency and throughput. For the sake of simplicity, suppose your API has only two operations: "read" and "write".

Your requirement might look like:

The API should support 10000 "read"s per second and 10000 "write"s per second, with a latency that is below 0.2 second in 90% of the cases.

Once you have this requirement described, try to simulate this scenario in JMeter, and see if the requirements are met.

Upvotes: 1

Related Questions