We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
RESTful Web 应用程序/API 只是 HTTP,因此不需要专门的工具来测试性能(与功能测试相反,专门的工具可能会有所帮助)。您基本上只需要发出大量 HTTP 请求并记录结果。
与 JMeter 等更复杂的工具相比,我更喜欢 ApacheBench。它非常简单且易于编写脚本 — 只需编写一个 shell 脚本即可。我还发现它是面向 HTTP 的,而 JMeter 等工具旨在支持模拟人类使用模式。
https://httpd.apache.org/docs/current/programs/ab。 html
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.
https://httpd.apache.org/docs/current/programs/ab.html
是的,SoapUI 和 Apache Jakarta JMeter
Yes, SoapUI and Apache Jakarta JMeter
REST 服务应该很容易使用 jmeter 进行测试。
REST services should be easy to test with jmeter.
正如我在评论中提到的,最好使用 siege 而不是 ab,因为它具有更多功能。但如果您需要更复杂的东西,请尝试 JMeter。对于 JMeter 分布式测试,您可以使用云中的 JMeter。
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.