首页/法务与合同/xcode-build-benchmark
X

xcode-build-benchmark

by @avdleev1.0.0
4.6(9)

对供应商进行结构化评估,覆盖成本效益、风险分析、服务质量和合规性,支持采购决策

legal-compliancerisk-managementregulatory-compliancecomplianceGitHub
安装方式
npx skills add avdlee/xcode-build-optimization-agent-skill --skill xcode-build-benchmark
compare_arrows

Before / After 效果对比

1
使用前

收集供应商的报价单、资质文件和合同条款,手动对比不同供应商的成本和服务水平,评估潜在风险,撰写评估报告,评估一个供应商需要 2-3 小时

使用后

按照结构化框架收集供应商信息,自动生成包含成本、风险、质量和合规性的综合评估报告,20 分钟完成分析

description SKILL.md

xcode-build-benchmark

Xcode Build Benchmark

Use this skill to produce a repeatable Xcode build baseline before anyone tries to optimize build times.

Core Rules

  • Measure before recommending changes.

  • Capture clean and incremental builds separately.

  • Keep the command, destination, configuration, scheme, and warm-up rules consistent across runs.

  • Write a timestamped JSON artifact to .build-benchmark/.

  • Do not change project files as part of benchmarking.

Inputs To Collect

Confirm or infer:

  • workspace or project path

  • scheme

  • configuration

  • destination

  • whether the user wants simulator or device numbers

  • whether a custom DerivedData path is needed

If the project has both clean-build and incremental-build pain, benchmark both. That is the default.

Worktree Considerations

When benchmarking inside a git worktree, SPM packages with exclude: paths that reference gitignored directories (e.g., __Snapshots__) will cause xcodebuild -resolvePackageDependencies to crash. Create those missing directories before running any builds.

Default Workflow

  • Normalize the build command and note every flag that affects caching or module reuse.

  • Run one warm-up build if needed to validate that the command succeeds.

  • Run 3 clean builds.

  • If COMPILATION_CACHING = YES is detected, run 3 cached clean builds. These measure clean build time with a warm compilation cache -- the realistic scenario for branch switching, pulling changes, or Clean Build Folder. The script handles this automatically by building once to warm the cache, then deleting DerivedData (but not the compilation cache) before each measured run. Pass --no-cached-clean to skip.

  • Run 3 zero-change builds (build immediately after a successful build with no edits). This measures the fixed overhead floor: dependency computation, project description transfer, build description creation, script phases, codesigning, and validation. A zero-change build that takes more than a few seconds indicates avoidable per-build overhead. Use the default benchmark_builds.py invocation (no --touch-file flag).

  • Optionally run 3 incremental builds with a file touch to measure a real edit-rebuild loop. Use --touch-file path/to/SomeFile.swift to touch a representative source file before each build.

  • Save the raw results and summary into .build-benchmark/.

  • Report medians and spread, not just the single fastest run.

Preferred Command Path

Use the shared helper when possible:

python3 scripts/benchmark_builds.py \
  --workspace App.xcworkspace \
  --scheme MyApp \
  --configuration Debug \
  --destination "platform=iOS Simulator,name=iPhone 16" \
  --output-dir .build-benchmark

If you cannot use the helper script, run equivalent xcodebuild commands with -showBuildTimingSummary and preserve the raw output.

Required Output

Return:

  • clean build median, min, max

  • cached clean build median, min, max (when COMPILATION_CACHING is enabled)

  • zero-change build median, min, max (fixed overhead floor)

  • incremental build median, min, max (if --touch-file was used)

  • biggest timing-summary categories

  • environment details that could affect comparisons

  • path to the saved artifact

If results are noisy, say so and recommend rerunning under calmer conditions.

When To Stop

Stop after measurement if the user only asked for benchmarking. If they want optimization guidance, hand off the artifact to the relevant specialist by reading its SKILL.md and applying its workflow to the same project context:

Additional Resources

Weekly Installs396Repositoryavdlee/xcode-bu…nt-skillGitHub Stars479First Seen3 days agoSecurity AuditsGen Agent Trust HubPassSocketPassSnykPassInstalled oncodex395github-copilot394gemini-cli394cline394cursor394opencode394

forum用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价,来写第一条吧

统计数据

安装量200
评分4.6 / 5.0
版本1.0.0
更新日期2026年3月31日
对比案例1 组

用户评分

4.6(9)
5
0%
4
0%
3
0%
2
0%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code

时间线

创建2026年3月31日
最后更新2026年3月31日