Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are some good ways to benchmark a REST api service?

Currently I use the REST Console extension for Google Chrome to see the JSON responses. I really like this client because it allows me to send authenticated requests that would otherwise not work for a anonymous request.

Are there any tools that I can use similar to this where I can benchmark the performance of my server?

For example returning the average response time, response time when under stress(1000 requests/sec).

What tools can I use that will be able to provide me with this information for a REST api service? I've looked into Jmeter but I don't think there is a Chrome plugin for it. I'm looking for a open ended answer.

like image 370
deadlock Avatar asked Aug 06 '13 18:08

deadlock


People also ask

What is the best way to test REST API?

If you are not a big fan of command-line tools and rather like a GUI client to test your REST API then Postman is the best tool for you. It comes as a Chrome extension and you can install it on your chrome browser and from thereon. It is probably the most popular tool to test your REST API.

What is benchmarking API?

What is Benchmarking APIs? In the context of business, to “benchmark” something means to see whether it is performing according to a certain standard. When you benchmark something, like a product or a service, you draw a line in the sand and you figure out what's needed to cross that line.

How do I improve my REST API performance?

Caching is one of the best ways to improve API performance. If you have requests that frequently produce the same response, a cached version of the response avoids excessive database queries. The easiest way to cache responses is to periodically expire it, or force it to expire when certain data updates happen.


1 Answers

ab is one of the widely used apache benchmarking tool.

It provides the results in the format you are looking for with the kind of load you want to generate.

http://httpd.apache.org/docs/2.2/programs/ab.html

like image 159
techuser soma Avatar answered Oct 17 '22 16:10

techuser soma