# Xcode build benchmark

> Xcode build benchmark is an open-source agent skill for developer tools. Measures Xcode clean and incremental build times and saves timestamped results. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/carloshpdoc/ios-workflow-claude/tree/main/plugins/xcode-build-suite/skills/xcode-build-benchmark
- **Repository:** https://github.com/carloshpdoc/ios-workflow-claude
- **GitHub stars:** 7
- **License:** Apache-2.0
- **Skill name:** xcode-build-benchmark
- **Collection:** https://github.com/carloshpdoc/ios-workflow-claude
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill sets up a repeatable timing baseline for an Xcode project before any build optimization starts. It runs clean builds, zero-change builds that expose fixed per-build overhead, and optionally incremental builds after touching a source file, then reports medians, minimums, maximums and the biggest timing-summary categories.

The workflow keeps the scheme, configuration, destination and warm-up rules consistent across runs and captures clean and incremental builds separately. When the project has compilation caching enabled, it also measures cached clean builds. Raw results and a summary are written as a JSON artifact into a .build-benchmark folder. The skill is instructed not to modify project files during measurement.

It expects an Xcode workspace or project, a scheme, a configuration and a simulator or device destination, and it runs through a Python helper script that calls xcodebuild with timing summaries. It also notes a worktree issue where missing gitignored directories can break package resolution. Related analysis skills are referenced for follow-up optimization work.

## When your agent uses it

> Benchmark Xcode clean and incremental builds with repeatable inputs, timing summaries, and timestamped `.build-benchmark/` artifacts. Use when a developer wants a baseline, wants to compare before and after changes, asks to measure build performance, mentions build times, build duration, how long builds take, or wants to know if builds got faster or slower.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/carloshpdoc/ios-workflow-claude/tree/HEAD/plugins/xcode-build-suite/skills/xcode-build-benchmark)
- [License: Apache-2.0](https://github.com/carloshpdoc/ios-workflow-claude/tree/HEAD/plugins/xcode-build-suite/skills/xcode-build-benchmark)

## Features

- **Clean build timing:** Runs repeated clean builds and reports median, minimum and maximum durations.
- **Zero-change overhead floor:** Measures builds with no edits to expose fixed per-build overhead.
- **Incremental edit loop:** Optionally touches a chosen source file before each build to time a real edit-rebuild cycle.
- **Cached clean builds:** Measures clean builds with a warm compilation cache when caching is enabled.
- **Timestamped artifacts:** Saves raw results and summaries as JSON in a dedicated benchmark folder.
- **Timing category breakdown:** Surfaces the largest categories from Xcode's build timing summary.

## Good for

- Measure how long a clean build of my iOS app takes
- Compare build times before and after a refactor
- Check whether incremental builds got slower after a dependency change
- Find out how much overhead a zero-change build has in my project
- Save a build time baseline for my team to track over time

## Install

### Claude Code

This skill ships in the `xcode-build-suite` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add carloshpdoc/ios-workflow-claude
/plugin install xcode-build-suite@carloshpdoc-plugins
```

Or copy only this skill to `~/.claude/skills/xcode-build-benchmark`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/carloshpdoc/ios-workflow-claude.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/xcode-build-benchmark &&
cp -R "$tmp/plugins/xcode-build-suite/skills/xcode-build-benchmark" ~/.claude/skills/xcode-build-benchmark &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/xcode-build-benchmark` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/xcode-build-benchmark` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/carloshpdoc/ios-workflow-claude.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/xcode-build-benchmark &&
cp -R "$tmp/plugins/xcode-build-suite/skills/xcode-build-benchmark" ~/.agents/skills/xcode-build-benchmark &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/xcode-build-benchmark` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/xcode-build-benchmark` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/carloshpdoc/ios-workflow-claude.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/xcode-build-benchmark &&
cp -R "$tmp/plugins/xcode-build-suite/skills/xcode-build-benchmark" ~/.cursor/skills/xcode-build-benchmark &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/xcode-build-benchmark` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/carloshpdoc/ios-workflow-claude.git --path plugins/xcode-build-suite/skills/xcode-build-benchmark
```

Or copy the folder to `~/.gemini/skills/xcode-build-benchmark` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/xcode-build-benchmark`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/carloshpdoc/ios-workflow-claude.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/xcode-build-benchmark &&
cp -R "$tmp/plugins/xcode-build-suite/skills/xcode-build-benchmark" ~/.copilot/skills/xcode-build-benchmark &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/xcode-build-benchmark` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/carloshpdoc/ios-workflow-claude.git
```

Then copy `ios-workflow-claude/plugins/xcode-build-suite/skills/xcode-build-benchmark` into your agent's skills folder as `xcode-build-benchmark`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Xcode build benchmark need to run?

It needs an Xcode workspace or project path, a scheme, a configuration and a destination, and it uses a Python helper script that calls xcodebuild with timing summaries.

### Does Xcode build benchmark change my project files?

No. The skill instructs the agent not to change project files as part of benchmarking.

### Where are the results saved?

A timestamped JSON artifact is written to a .build-benchmark/ folder in the project.

### Does Xcode build benchmark measure cached clean builds?

Yes, when COMPILATION_CACHING is detected as enabled, unless the --no-cached-clean flag is passed to skip it.

### How do I install Xcode build benchmark in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/xcode-build-benchmark to use it in all your projects, or to .claude/skills/xcode-build-benchmark in one project. Or install the xcode-build-suite plugin, which includes it: /plugin marketplace add carloshpdoc/ios-workflow-claude, then /plugin install xcode-build-suite@carloshpdoc-plugins.

### Does Xcode build benchmark run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Xcode build benchmark?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Xcode build benchmark?

The closest alternatives to Xcode build benchmark are Xcode build orchestrator, Xcode build fixer, Xcode project analyzer, Axiom optimize build and Benchmark.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Xcode build orchestrator](https://ai-powered.com/skills/xcode-build-orchestrator): Xcode build orchestrator is an open-source agent skill for developer tools.
- [Xcode build fixer](https://ai-powered.com/skills/xcode-build-fixer): Xcode build fixer is an open-source agent skill for developer tools.
- [Xcode project analyzer](https://ai-powered.com/skills/xcode-project-analyzer): Xcode project analyzer is an open-source agent skill for developer tools.
- [Axiom optimize build](https://ai-powered.com/skills/axiom-optimize-build): Axiom optimize build is an open-source agent skill for developer tools.
- [Benchmark](https://ai-powered.com/skills/benchmark): Benchmark is an open-source agent skill for developer tools.
- [Xcode compilation analyzer](https://ai-powered.com/skills/xcode-compilation-analyzer): Xcode compilation analyzer is an open-source agent skill for developer tools.
- [Benchmark checklist](https://ai-powered.com/skills/benchmark-checklist): Benchmark checklist is an open-source agent skill for developer tools.
- [Benchmark optimization loop](https://ai-powered.com/skills/benchmark-optimization-loop): Benchmark optimization loop is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/xcode-build-benchmark
