Issue #3504566: Add PerformanceTestTrait::clearCaches() so it is easier to use other performance tests
Closes #3504566