When enhancing code becuase of performance reason, we should start looking into MicroBenchmark tools. The suggested approach will verify the new implementation is performing better, without the hassle on preparing a full integration environment, which is time consuming and hard to test (different code maybe consuming resoruces at system level hiding the actual gain...).
In addition, this perf testing will be automated as part of the build verification done at CI level...
http://stackoverflow.com/questions/30485856/how-to-run-jmh-from-inside-junit-tests
When enhancing code becuase of performance reason, we should start looking into MicroBenchmark tools. The suggested approach will verify the new implementation is performing better, without the hassle on preparing a full integration environment, which is time consuming and hard to test (different code maybe consuming resoruces at system level hiding the actual gain...).
In addition, this perf testing will be automated as part of the build verification done at CI level...
http://stackoverflow.com/questions/30485856/how-to-run-jmh-from-inside-junit-tests