We have web-application with REST interface. Is there some tools to test it?
Asked
Active
Viewed 6.0k times
37
-
This article explains how to load test a Rest API using OctoPerf: http://octoperf.com/blog/2015/07/28/load-testing-rest-api/ – Jerome L Mar 26 '18 at 13:22
4 Answers
34
A RESTful web app/API is just HTTP, so no specialized tools are needed to test performance (as opposed to functional testing, where specialized tools could be helpful). You basically just need to make a lot of HTTP requests and record the results.
I prefer ApacheBench to more complex tools such as JMeter. It's very simple and easily scriptable — just write a shell script. I also find it oriented on HTTP, while tools like JMeter are designed to support simulating human usage patterns.

Mohamed El-Beltagy
- 902
- 10
- 19

Avi Flax
- 50,872
- 9
- 47
- 64
-
+1 Was aware of JMeter (although I've used Microsoft's old stress tool more) but ApacheBench looks really promising. – James Skemp Jun 22 '10 at 12:35
-
ab looks interesting especially that it has reporting built in. It would be much better if it supported generation of randomized inputs. Does it? – pastafarian Aug 05 '13 at 18:39
-
-
2
-
3I've tested ApacheBench and found it to be not as 'concurrent' as it claims to be. I could bring a newly developed webservice down by holding down F5 in Chrome, while ApacheBench hardly put any pressure on it. After a lot of trying and tweaking I discarded it as being useless. – GolezTrol Oct 24 '15 at 08:00
-
@GolezTrol thanks for the heads up! Is there another tool that you recommend? – Avi Flax Nov 04 '15 at 16:04
3
REST services should be easy to test with jmeter.

Aliaksandr Belik
- 12,725
- 6
- 64
- 90

Nikolaus Gradwohl
- 19,708
- 3
- 45
- 61
2
As I mentioned in comment better use siege than ab as it has more functionality. But if you need something more complex try JMeter. For JMeter distributed testing you can use JMeter in cloud.

Bob Meliev
- 1,198
- 12
- 17