I changed some caching logic in an endpoint and I want to performance test it. The server is on Heroku. How can I test this endpoint? What tools are out there that I can use?
I know of ab apache tools. What else?
ab doesn't actually seem to hit the endpoint. It doesn't seem to make a real request when I make the request to localhost. Any ideas?
Where are you running ab? You can't direct it to hit localhost unless you're running it on the same host that terminates client connections to the API endpoint.
If you're looking for tools to performance test an API, I can recommend looking at these:
Full disclosure: I'm involved in the k6 project. All the above are open source tools and they all allow you to write test cases in real code, which is something I think is very useful. If you don't want/need to write test case in real code, there are several other tools you can use:
Then there are some tools that are more complex, more suitable for testing web sites than simple or automated API end point testing (in my opinion), like Jmeter, Gatling, Tsung. And some tools that are suitable for API testing but where, due to bad performance, the measurements are a bit off, like Artillery, Siege and Locust.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With