Testing simultaneous queries on the REST server

Asked

Viewed 698 times

3

I have a server REST/WebApi and wanted to test its performance with simultaneous consultations.

My goal is to test, logically the performance, and also if the same is treating each request separately, that is, each query is treated by a process, thus avoiding bottlenecks in consultations.

I am currently using the Postman for simple tests, I saw that he has a test tool, but is paid and I do not know if it meets my goal.

I wonder if there is any tool for this purpose.

  • 1

    An interesting option is to use Curl (http://curl.haxx.se/). You can do scritps that call Curl so you can test simultaneous connections to your REST.

  • It really is a powerful but complex tool. I wanted something more practical to accomplish this task. Or add a response to how to implement these tests.

  • Start looking for Load Testing tools. If you want something more professional recommend the Visual Studio Online.

  • 2

    There are two very good tools, Jmeter and Apache Benchmarking.

1 answer

3


There are two very good tools, Jmeter and Apache Benchmarking.

Apache Benchmarking is a tool that comes along with Apache httpd (known only as apache), is a tool that runs over the terminal.

AB - Basic commands

ab -n 10 -c 10 http://url:porta/path

Where:
-n is the requisition number
-c is the number of competition
-s is the timeout maximum for each request

Resumo da resuição

In addition to this basic command there are other parameters that can help in testing, such as method which must be used in the requisition, summary in table format, among others.

Since Jmeter is much more complex has a graphical interface, was developed in swing, so it will be necessary to JVM, in it we can create a test plan and save this plan, it is much more complex in relation to ab

Worth seeing the documentation of the two

AB
Jmeter

Browser other questions tagged

You are not signed in. Login or sign up in order to post.