Ask HN: What do you use for load testing an API?
4 comments
Locust.io
We ended up writing out own little load test suite since we wanted to accurately represent a concurrent load of different user profiles. Each user profile has a different set of functions and rate of accessing the system which we had a difficult time replicating in JMeter.
It's very simple little java program and nicely tailored to our particular use cases which makes using it very easy. I am not typically a proponent for "roll your own" but in this case, I feel we got quite a bit of ROI from writing very little code.
It's very simple little java program and nicely tailored to our particular use cases which makes using it very easy. I am not typically a proponent for "roll your own" but in this case, I feel we got quite a bit of ROI from writing very little code.
We also ended up rolling our own to simulate individual stateful clients connecting concurrently. It was pretty easy to do using Python and Eventlet.
We wrote the client logic in a straightforward imperative way, and then just spawned off thousands of green threads, measured times, and aggregated the results.
We wrote the client logic in a straightforward imperative way, and then just spawned off thousands of green threads, measured times, and aggregated the results.
What tools and services have you used and for what use cases? How did you monitor you server and find the bugs and bottlenecks?