Search code examples
performanceapihttpserverperformance-testing

How to test server performance


How can I test server performance to be exact an API?

Let's say this API: https://test.com/new_task. It's a POST request and requires certain data in body. Now how can I test this and know the server maximum capacity (number of requests simultaneously)?

I tried searching in the Postman UI, but I didn't find any option for this purpose. Is there any software or application specifically developed for this purpose?


Solution

  • Postman cannot send requests in parallel, maximum you can achieve with it is running your request/collection sequentially for specified number of iterations.

    You can consider switching to i.e. SoapUI which has some load testing capabilities (rather limited though)

    The best option would be converting your Postman request (or collection) into a load testing tool test plan, for example Apache JMeter is quite powerful.

    In order to convert your Postman request (or collection) into a JMeter test plan:

    1. Install JMeter

    2. Launch JMeter's HTTP(S) Test Script Recorder

    3. If your request uses HTTPS protocol - import JMeter's self-signed certificate into Postman

      enter image description here

    4. Configure Postman to use JMeter as the proxy

      enter image description here

    5. Run your request (or collection) in Postman

    6. JMeter will capture the request(s) and create relevant HTTP Request sampler and HTTP Header Manager

    7. Once done you can increase the number of threads (virtual users) in Thread Group and run your request in parallel.

    More information: How to Convert Your Postman API Tests to JMeter for Scaling