I have written a REST web service. I want to get some performance statistics for client reference. What is the best way to measure the performance of my service ? Should I run a timer from the client making the request or the time it takes the server once a request is received.
How can effectively measure the speed of my web service ?
Note**
I’m aware that the answers to this question borders on being opinion, however I think that there is a consensus approved approach for getting these stats.
Benchmark it. Apache provides the
abtool, which does this for you.It will show you how many requests the server can handle per second. You can even fine-tune your settings, since it has a lot of options (like concurrency, the way of connecting, etc).
Of course, there are a lot of other benchmark tools