When we test the performance in a cloud environment, we need to take enough precautions so that we can have accurate performance results. This is because a cloud environment is based on virtualized resources (that is, virtual machines), and environment performance is not guaranteed to be the same for all test execution times.
The main reason behind this is that virtual resources can be markedly affected by other concurrent executions in other virtual resources hosted on the same machine. So, when we propose a performance fix, we need to ensure that the testing results reflect the application performance, not the environment instability results. Therefore, it is better to take one of the following measures to reduce the impact of doing performance testing in a cloud environment: