Issue #3477191: Add PerformanceTestTrait::assertMetrics() so it is easier to write performance tests
Closes #3477191