SonarQube analysis takes a random amount of time regardless of the altered files

Thanks!

If you’re using the latest version of the SonarScanner for .NET – you will be able to take advantage of new caching features to prevent files from being analyzed unnecessarily (particularly unchanged files)

Beyond that, I can suggest this guide for diagnosing performance issues: