XcodeBenchmark icon indicating copy to clipboard operation
XcodeBenchmark copied to clipboard

M1 Max with Xcode 13.2 and new build system

Open florentmorin opened this issue 3 years ago • 4 comments

Checklist

If you have any non-Apple hardware components - submit your results to the Custom Hardware table.

  • [x] I performed all steps to correctly run XcodeBenchmark.
  • [x] I used Xcode 12.5 or above.
  • [x] I attached a screenshot with a compilation time and other fields, example.
  • [x] I confirm that Time column is still sorted.
  • [x] The content in cells is centered.
M1Max-Enabled M1Max-Disabled

florentmorin avatar Dec 12 '21 12:12 florentmorin

Please explain what you are doing. Did you change the shell script?

sverrisson avatar Dec 12 '21 16:12 sverrisson

The fastest build was done using new build system introduced by Xcode 13.2.

It was enabled by running this before launching script:

defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 1

And disabled like this:

defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 0

florentmorin avatar Dec 12 '21 16:12 florentmorin

Thank you for showing us the new build system. I didn't read the release notes before, but this is very interesting. The idea of the tests here, is that all are running the same process, so that we compare the hardware. I will investigate this further and then we will probably add a new table with the new build system.

sverrisson avatar Dec 12 '21 17:12 sverrisson

You can try running the swift-build-system branch. It uses the new build system.

sverrisson avatar Dec 13 '21 00:12 sverrisson