Refactoring the performance test