Top Performance Test Tips?



Anyone have favourite ways to test performance, and ensure code doesn’t deteriorate below expectations?

At the moment, I have a dev machine on a cloud, and use exunit to test that requests are fulfilled in an appropriate amount of time…

Trouble is, the machine’s performance is highly variable (due to cloud).

Would love to hear other’s approaches… I am tempted to get statistical, but I am sure there is some neat solution to this problem in general…


The best thing that comes to mind is using an all times monitoring system, like Prometheus.
With Prometheus you can collect several metrics over time (ranging from memory consumed to application specific metrics you define) and then set up a standard on how your application is performing over time.

With this in mind, there is no standard universal way to benchmark an app, mainly because benchmarking is very app specific (afaik).