Skip to content

Performance gap: Xcode build inside Tart VM vs Host #1125

@BarabanovVVl

Description

@BarabanovVVl

Hello team!

We’re planning to integrate pure Tart VMs into our CI/CD flow (Jenkins → Host → SSH → VM).
The VM workflow:

  • prepare environment and project via Tuist

  • build project binaries with xcodebuild (via fastlane)

  • run UI and Unit tests.

Environment:

  • Host & VM: macOS Sequoia (latest)

  • Host machine: Apple M1 (8 cores, 16 GB RAM)

  • VM: 100% CPU and memory allocated

  • Spotlight indexing disabled (host and VM)

  • Animations, screensavers etc. disabled

  • Root disk created with performance optimization flags:

  • --root-disk-opts="sync=none,caching=cached"

  • The VM image is created manually, very close to the configuration produced by Packer (custom-built image).

Observations:

  • On host: xcodebuild full project build takes ~307 seconds.

  • Inside Tart VM: same build takes ~400–470 seconds.

  • Environment, dependencies, and build commands are identical.

Questions:

  1. Do you have general recommendations for resource allocation (CPU/RAM/disk) for Tart VMs based on host capacity?

  2. Are there any best practices to reduce the Xcode build performance gap between host and VM?

Thx!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions