Xcode compilation is unusually slow -- Monterey

I just bought a new m1 pro MBP, and it takes a lot of time to build any project after downloading Xcode from the App Store, such as this https://github.com/devMEremenko/XcodeBenchmark. It takes 30 minutes, and my old intel mac only takes 3 minutes. What should I do?

Xcode Version: 13.2.1

Stop building the benchmark project and focus on creating something.

Xcode compilation is unusually slow -- Monterey
 
 
Q