Skip to content

Instantly share code, notes, and snippets.

@PaulTaykalo
Created June 6, 2018 07:09
Show Gist options
  • Save PaulTaykalo/4c6414a0bef54bb04a34c3810e2cb2cf to your computer and use it in GitHub Desktop.
Save PaulTaykalo/4c6414a0bef54bb04a34c3810e2cb2cf to your computer and use it in GitHub Desktop.
Xcode build times comparison
python -m timeit -n 1 -r 5 -s 'import os' \
-s 'import shutil' \
-s 'shutil.rmtree("LocalDerivedData", ignore_errors=True)' \
-s 'os.system("xcodebuild -workspace MyWorkspace.xcworkspace -scheme MyScheme -derivedDataPath LocalDerivedData clean | xcpretty")' \
'os.system("xcodebuild -workspace MyWorkspace.xcworkspace -scheme MyScheme -derivedDataPath LocalDerivedData build-for-testing | xcpretty")'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment