While
performance certainly matters for testing, due to fast tests not breaking the feedback cycle that's so important
in being agile (rather than "Doing Agile", which just isn't the same thing), the reverse is also true: with
a trusted set of unit tests, you are much more likely to show the
courage needed to make bold changes to
working code in order to make it go faster.
So performance and testing are mutually dependent.