# XCLoom Living Benchmarks

Last measured: 2026-11-26

This permanent URL records XCLoom's measured timings across six public open-source iOS repositories (`scripts/bench/direct-engine-large-oss.sh`, `v0.10.0`, measured `2026-11-24`), a production iOS + watchOS codebase (`77.7 MB` `.ipa`, 7 nested bundles), the built-in dual-tier slim simulator pool (`scripts/bench/bench-sim-slim-vs-stock.sh`), and local release tooling (`scripts/bench/run-all.sh`). Harness scripts are checked into git with raw TSVs, summaries, and host load logs tracked in `docs/claims-ledger.md` and `tests/corpus/bench/large-oss-direct-engine/`. Any unmeasured cell remains marked as pending until verified runs record raw data.

## Key Measured Numbers

1. Across two production Claude Code sessions on the author's shipping iOS and watchOS app (`77.7 MB` `.ipa`, `208.2 min` and `109.2 min`), local tool waits accounted for `71%` (`147.1 min`: `84.1 min` UI driver, `45.5 min` build+drive, `9.4 min` build scripts, `8.1 min` other local tools) and `69%` (`75.1 min`: `41.6 min` UI driver, `26.5 min` build+drive, `3.7 min` build scripts, `3.3 min` other local tools) of wall-clock time while model thinking took `29%` (`61.1 min`) and `31%` (`34.1 min`).
2. On the author's modular production iOS + watchOS app (`77.7 MB` `.ipa`, 7 nested bundles), XCLoom Direct ran a 1-file simulator Swift edit in `2.41s` (`118/2` CAS hits), a fresh git worktree build in `1.32s` (`124/0` CAS hits), and a `63 KB` warm `.dylib` hot patch in `0.36s` (recorded standalone without a side-by-side legacy baseline; like-for-like public OSS comparisons follow below).
3. Across all six public open-source iOS apps in the `2026-11-24` unified 3-round harness (`scripts/bench/direct-engine-large-oss.sh --preset all --rounds 3`), all 6/6 repositories compiled via `direct` (`fallback_reason=-`) and beat native `xcodebuild` in 24/24 cells. Relying strictly on cells where native variance stayed within `<= 15%` of the quiet baseline logged in `docs/claims-ledger.md`, stable Cold A speedups ranged `1.11x–3.07x` (5 repos excluding `wikipedia-ios`) and stable New Worktree C speedups ranged `3.96x–51.5x` (5 repos excluding `NetNewsWire`: `sample-food-truck` `23.16s -> 0.45s` [`51.5x`], `IceCubesApp` `45.97s -> 1.00s` [`46.0x`], `Swiftfin` `58.70s -> 3.03s` [`19.4x`], `Signal-iOS` `74.10s -> 5.15s` [`14.4x`], `wikipedia-ios` `47.36s -> 11.95s` [`3.96x`]). Earlier `apple/sample-food-truck` runs (`scripts/bench/direct-engine-food-truck.sh`, which also timed warm `.dylib` hot patch at `0.37s` vs `3.81s` 1-line edit) are listed separately below because they predated parallel `xcloom-car` asset compilation.
4. Built-in dual-tier pre-boot simulator slimming (`19` daemon categories, `24` always-protected daemons, `scripts/bench/bench-sim-slim-vs-stock.sh --rounds 2`, `2026-11-22`) lowered physical memory (`ri_phys_footprint`) from `1.88 GiB` to `1.50 GiB` (`-20.3%`, `-0.38 GiB`) and live `launchd_sim` daemons from `213` to `140` (`-34.3%`) under Safe Default (`xcloom sim boot`, slim by default while `--stock` opts out; `147` disabled entries, cold boot `2.37s` -> `2.94s`, `+0.57s`), and from `1.70 GiB` to `0.72 GiB` (`-57.3%`; unrounded `1.695 -> 0.724 GiB`, `-0.97 GiB`) and `190` to `85` daemons (`-55.3%`) under App-Aware Auto-Slim (`xcloom sim boot --for MinimalApp.app`, up to `160` entries via `2–15 ms` static analysis, cold boot `2.49s` -> `3.02s`, `+0.53s`). Single-RunLoop 2x2 UI audits (`xcloom canvas matrix-act` on a pre-booted slim `iPhone 17`, excluding simulator boot and first launch) swept the full SwiftUI + Swift Charts `apple/sample-food-truck` app in `1.44s` (`1441.4 ms` CLI 3-round median, range `1433.7–1458.2 ms`; `1468.6 ms` probe median; `2026-11-25`, Xcode `27.2`, `xcloom d026aff`), and the minimal UIKit `MatrixSweepOracle` fixture in `0.064s` (`63.8 ms` wall / `63 ms` probe median, `822x1808` PNG, `0` leaked simulators).
5. Uploading the `77.7 MB` production `.ipa` with `xcloom upload-asc` (15 chunks over a 16-stream HTTP/2 pool) completed in `25.1s`, compared to `67–118s` with `altool` in a 5-build TestFlight baseline (`4.0–7.1 min` local plus `3–5 min` Apple server processing, `8.8–11.1 min` end-to-end).
6. In `scripts/bench/run-all.sh` (9-run medians), self-signed Keychain-free Mach-O CMS signing finished in `0.43s` on an `85 MB` / 27-bundle fixture (passing `/usr/bin/codesign --verify --deep --strict`), and offline `xcloom preflight` (`31` offline checks: `22` App Store `ITMS-*` rules, including `ITMS-90174` and Privacy Manifest `ITMS-91053`/`ITMS-91056` + `XCLOOM-PRIVACY-SDK-ONLY`, plus `9` `XCLOOM-252-*` dev-marker leak checks) ran in `0.66s` (`--method development`) and `3.11s` (`--method app-store`) on a `149 MB` `.ipa`, `1.87s` on the `77.7 MB` production App Store `.ipa`, `0.39s` in a single trial on an `85 MB` `.ipa`, and `2294.4 ms` on the `Swiftfin` simulator build capture (`19` passed, `11` errors, `1` warning).

## Methodology & Verification Oracle

- Host hardware: Mac15,14 (Apple M3 Ultra, 32 cores, 512 GB RAM). Timings on smaller 16–36 GB Macs have not been measured yet.
- OS, toolchain, and per-capture versions: macOS 26.6.2 (`25G83`). `v0.10.0` is the upcoming initial public release; each benchmark table or terminal capture records its exact date, Xcode version (Xcode `27.1` `27A9275` for the `2026-11-24` 6-repo suite; Xcode `27.2` after the `2026-11-25` host update for `matrix`, `preflight`, and `trace` captures), and git commit SHA in its own caption.
- Build revisions (`docs/claims-ledger.md`): `3c39d3c` (`2026-11-24`) for the 6-repo unified suite (`scripts/bench/direct-engine-large-oss.sh`), `cd2889d` (`2026-11-26`, Xcode `27.2`) for the same-batch `Signal-iOS` hot-patch suite (`scripts/bench/hot-patch-large-oss.sh`), `377babb` (`2026-11-20`) for the earlier single-repo `sample-food-truck` hot-patch run (`scripts/bench/direct-engine-food-truck.sh`), `94ba00c` (`2026-11-21`) for the earlier `xcloom bench` run, `6cbf81a`/`d026aff` (`2026-11-25`) for terminal captures (`preflight`, `trace`, `matrix`), and `89bba10` for the earlier quiet-host variance baseline.
- Public harness conditions: `scripts/bench/direct-engine-large-oss.sh --preset all --rounds 3` (`--wait-load 11` on `icecubes`/`netnewswire`/`swiftfin`, `--wait-load 14` on `food-truck`/`signal-ios`/`wikipedia-ios`, 3 cold-started rounds per app, `iphonesimulator` `arm64`, Debug; raw TSVs, summaries, and `load.txt` in `tests/corpus/bench/large-oss-direct-engine/`) runs under `env -i`, `CODE_SIGNING_ALLOWED=NO`, `XCLOOM_NO_GLOBAL_CAS=1`, and Colima stopped, with remote SwiftPM packages pre-resolved outside timed rounds; `scripts/bench/bench-sim-slim-vs-stock.sh --udid <UDID> --settle-secs 12 --rounds 2` (and `--for MinimalApp.app`, `2026-11-22`) runs alternating `slim->stock` and `stock->slim` rounds on `iPhone Air` (`iOS 27.3`, `12s` settle, `rss_fallback_pids=0`); `scripts/bench/run-all.sh` reports 9-run medians.
- Production iOS + watchOS Case Study: Measured on a private shipping app (`77.7 MB` `.ipa`, 7 nested bundles) alongside two audited Claude Code sessions. Release archive timings (`20.3s` 1-file edit / `124.0s` cold) are `--adhoc-inspect` `archive_seconds`; totals including `.ipa` export are `23.1s` and `126.7s`.
- Artifact verification oracle: Automated round-1 verification runs Apple's native tools (`/usr/bin/codesign --verify --deep --strict`, `plutil -lint`, and `otool -L`) plus Scenario D Mach-O marker symbol checks on every Direct Engine `.app` bundle. Interactive simulator launch is verified separately outside the 3-round timed loop.
- Memory accounting: Simulator footprint uses macOS `proc_pid_rusage` (`ri_phys_footprint`, `rss_fallback_pids=0`), never double-counted RSS.

## 6-Repo Public Open-Source Matrix

Measured `2026-11-24` via `scripts/bench/direct-engine-large-oss.sh --preset all --rounds 3` (`v0.10.0` build `3c39d3c`, `--wait-load 11` on `icecubes`/`netnewswire`/`swiftfin`, `--wait-load 14` on `food-truck`/`signal-ios`/`wikipedia-ios`, 3 cold-started rounds per app, `iphonesimulator` `arm64`, Debug; raw TSVs, summaries, and `load.txt` in `tests/corpus/bench/large-oss-direct-engine/`).

| Repository (Pinned SHA) | Engine | Cold A (1st worktree `wt1`) `xcloom` vs `native` | No-Change B (`wt1`) `xcloom` vs `native` | New Worktree C (2nd worktree `wt2`) `xcloom` vs `native` | 1-Line Edit D (`wt2`) `xcloom` vs `native` |
| --- | --- | --- | --- | --- | --- |
| `apple/sample-food-truck` (`3954a769e99f`) | `direct` | `7.78s` vs `23.90s` (`3.07x`) | `0.22s` vs `3.63s` (`16.5x`) | `0.45s` (`11/0` CAS) vs `23.16s` (`51.5x`) | `1.51s` vs `5.43s` (`3.60x`) |
| `Dimillian/IceCubesApp` (`98098b9c4b59`) | `direct` | `26.85s` vs `45.68s` (`1.70x`) | `0.63s` vs `12.08s` (`19.2x`) | `1.00s` (`63/0` CAS) vs `45.97s` (`46.0x`) | `3.30s` vs `12.94s` (`3.92x`) |
| `Ranchero-Software/NetNewsWire` (`cf07204cce7f`) | `direct` | `14.27s` vs `23.22s` (`1.63x`) | `0.51s` vs `15.12s` (`29.6x`) | `1.60s` (`54/4` CAS) vs `22.47s` (`14.0x`) | `3.49s` vs `14.29s` (`4.09x`) |
| `jellyfin/Swiftfin` (`5d48ca973c9e`) | `direct` | `56.65s` vs `70.55s` (`1.25x`) | `2.03s` vs `11.74s` (`5.78x`) | `3.03s` (`78/0` CAS) vs `58.70s` (`19.4x`) | `18.28s` vs `32.83s` (`1.80x`) |
| `signalapp/Signal-iOS` (`a690a26d2cfe`) | `direct` | `69.02s` vs `76.70s` (`1.11x`) | `1.94s` vs `10.27s` (`5.29x`) | `5.15s` (`75/0` CAS) vs `74.10s` (`14.4x`) | `14.18s` vs `31.16s` (`2.20x`) |
| `wikimedia/wikipedia-ios` (`11a763dea0c8`) | `direct` | `48.37s` vs `62.34s` (`1.29x`) | `9.70s` vs `23.50s` (`2.42x`) | `11.95s` (`311/0` CAS) vs `47.36s` (`3.96x`) | `16.00s` vs `23.96s` (`1.50x`) |

Headline multiplier rules and host load disclosure: All 6/6 repositories compiled through the `direct` engine (`fallback_reason=-`) and beat native `xcodebuild` in 24/24 cells. Recomputed against the earlier quiet baseline logged in `docs/claims-ledger.md` (`89bba10`), XCLoom still beats native in all 24/24 cells, with the smallest margins at `1.06x` on `wikipedia-ios` cold A (`51.24s` vs `48.37s`) and `1.10x` on `Swiftfin` cold A (`62.51s` vs `56.65s`). Because host load during this run started at `10.4–13.8` and ended at `10.7–33.2`, `11` of the `24` cells saw native `xcodebuild` drift more than `15%` above `89bba10`: `9` of those were in Scenarios B and D (which are not used in the A/C headline ranges), and the other `2` were `wikipedia-ios` Cold A and `NetNewsWire` New Worktree C, which are excluded from the headline multipliers (`1.11x–3.07x` Cold A and `3.96x–51.5x` New Worktree C). On `Signal-iOS` Cold A, a transient round-1 load spike (`50.38`) made XCLoom's slowest single round (`99.34s`) slower than native's slowest round (`82.79s`), while the 3-round median stayed faster (`69.02s` vs `76.70s`).

Why `apple/sample-food-truck` Cold A runs `3.07x` faster (`23.90s -> 7.78s`): Under an empty cache (`XCLOOM_NO_GLOBAL_CAS=1`), XCLoom logged `2/10` intra-build reuse of `FoodTruckKit` shared between the main App and Widgets, and gained the rest from parallel `xcloom-car` asset catalog compilation ahead of `actool`, split SDK module prewarming, and overlapped target pipelining. Automated round-1 outputs passed `plutil -lint`, `otool -L`, `/usr/bin/codesign --verify --deep --strict`, and Scenario D Mach-O marker verification (interactive simulator launch is checked separately outside the timed loop).

Raw 3-round min–max ranges (`xcloom` vs `native`):

- `apple/sample-food-truck`: A `7.37–11.06s` vs `23.89–24.12s`, B `0.19–0.29s` vs `3.21–3.63s`, C `0.41–0.60s` vs `23.07–23.86s`, D `1.39–2.64s` vs `4.77–8.42s`.
- `Dimillian/IceCubesApp`: A `25.71–28.34s` vs `40.96–50.86s`, B `0.61–1.34s` vs `10.19–13.78s`, C `0.64–1.11s` vs `41.74–46.39s`, D `3.27–3.51s` vs `9.34–13.08s`.
- `Ranchero-Software/NetNewsWire`: A `14.23–14.51s` vs `21.86–30.48s`, B `0.50–0.51s` vs `14.00–15.18s`, C `1.56–1.62s` vs `19.07–29.60s`, D `3.46–3.56s` vs `13.86–16.13s`.
- `jellyfin/Swiftfin`: A `54.27–57.48s` vs `67.21–80.77s`, B `1.94–2.26s` vs `11.52–17.47s`, C `3.01–3.22s` vs `56.78–66.54s`, D `15.03–18.53s` vs `32.23–32.94s`.
- `signalapp/Signal-iOS`: A `66.23–99.34s` vs `76.04–82.79s` (round-1 transient end-load `50.38`), B `1.93–2.12s` vs `9.80–12.25s`, C `4.96–5.31s` vs `70.41–125.34s`, D `13.73–14.95s` vs `24.34–33.46s`.
- `wikimedia/wikipedia-ios`: A `45.94–49.50s` vs `60.48–62.80s`, B `9.68–9.78s` vs `15.15–28.90s`, C `11.57–14.75s` vs `46.27–51.01s`, D `15.04–16.69s` vs `22.03–29.46s`.

Same-batch `Signal-iOS` warm `.dylib` hot patch (`scripts/bench/hot-patch-large-oss.sh`, `cd2889d`, `2026-11-26`, Xcode `27.2`, raw TSVs & `load.txt` in `tests/corpus/bench/signal-ios-hot-patch/`): Recorded in a separate Xcode `27.2` batch from the Xcode `27.1` 6-repo table above. On `signalapp/Signal-iOS` (`a690a26d2cfe`, scheme `Signal`, alternating 1-line Swift function-body edit in `Signal/Calls/CallStrings.swift`, verifying both embedded string marker and `codesign --verify --strict` on every round), warm 3-round medians (`r1–r3`) dropped from `27.37s` (`24.54–29.12s`, plain `xcodebuild` relinking the `85.4 MB` `Signal.debug.dylib`) to `1.93s` (`0.71–2.21s`, `14.2x` faster than plain `xcodebuild` and `~7.3x` faster than the `14.18s` direct full `.app` relink in the 6-repo table above; `89 KB` signed `.dylib` patch; fastest round `0.71s`; first function-body edit `r0`: `48.83s -> 1.52s`, `32.1x`). Structural ABI edits fall back to full direct rebuild (`14.18s`). Shared-host 1-minute load during `r1–r3` was `27.89–40.57` (native median `27.37s` stayed below the earlier quiet `31.16s` Scenario D baseline).

Earlier `apple/sample-food-truck` hot-patch run (`377babb`, `2026-11-20`): Before parallel `xcloom-car` asset compilation landed in `3c39d3c` (`2026-11-24`), `sample-food-truck` cold builds on `377babb` ran slower than `xcodebuild` (`26.41s` vs `22.61s`; later reduced to `7.78s` vs `23.90s` on `3c39d3c`). We keep `377babb` (`scripts/bench/direct-engine-food-truck.sh`, 3-round medians, load `< 12`) listed here because it recorded the quiet-host `.dylib` hot patch timings: 1-line edit `3.81s` (`xcodebuild`) -> `1.02s` (`direct`) -> `0.37s` warm `.dylib` patch (`10.3x` vs `xcodebuild`; first patch `2.97s`), fresh worktree `22.82s -> 0.25s`, no-op `2.44s -> 0.06s`.

Direct Engine architecture, Debug vs Release, and remote CAS scope: Layer 1 executes native compilers and asset tools directly (Swift, C/C++/ObjC, `.xcassets`, Storyboards/XIBs, Metal, CoreData `momc`, CocoaPods, Swift Macros, and app extensions); Layer 2 provides per-target hybrid delegation when a dependency target relies on a rare unsupported rule. Local macOS Debug `build`, `run`, `hot`, and `test` default to `direct` under `--engine auto` (`--local` forces on-Mac execution) for eligible `.xcodeproj`, `.xcworkspace`, CocoaPods, and XcodeGen (`project.yml`) apps (including SwiftPM dependencies) without migrating to Bazel, while standalone `Package.swift` builds and unsupported build rules fall back automatically to `xcodebuild` and print `engine_fallback_reason`. `xcloom archive --local` defaults to `xcodebuild` under `--engine auto` and supports explicit `--engine direct`; `xcloom testflight` builds via `xcodebuild` (or pair `xcloom archive --local --engine direct` with `xcloom preflight` and `xcloom upload-asc`). Teams can share L2 compiled artifacts across Macs and CI via `--remote-cas` (S3, Cloudflare R2, or shared filesystem) with zero hosted vendor account. XCLoom's dual-tier slim simulator pool, 2x2 UI checks, offline preflight, and Keychain-free signing operate on any built `.app` or `.ipa` bundle regardless of which build system produced it.

## Production iOS + watchOS App Timings

Measured on the author's private shipping iOS and watchOS app (`77.7 MB` `.ipa`, 7 nested bundles, modular codebase). Why the `2.41s` 1-file edit is faster than `Signal-iOS` (`14.18s`) or `Swiftfin` (`18.28s`): unlike monolithic main app binaries that must relink one giant executable on every edit, this modular app reused `118/120` cached targets (`118/2` CAS) and only recompiled and linked the single touched module. Build timings below are listed standalone without a side-by-side legacy baseline because pre-XCLoom scripts used queue locks or different signing modes; clean like-for-like `xcodebuild` comparisons are in the 6-repo and `Signal-iOS` hot-patch tables above. In two pre-XCLoom Claude Code sessions on this app, Session A (`208.2 min`) spent `61.1 min` (`29%`) on LLM thinking and `147.1 min` (`71%`) waiting on local tools (`84.1 min` UI driver, `45.5 min` combined build+drive commands, `9.4 min` build scripts, `8.1 min` other local tools); Session B (`109.2 min`) spent `34.1 min` (`31%`) thinking and `75.1 min` (`69%`) waiting on local tools (`41.6 min` UI driver, `26.5 min` combined build+drive commands, `3.7 min` build scripts, `3.3 min` other local tools). A separate UI regression log recorded `19` simulator runs taking `25 min`.

| Standalone XCLoom Direct Timing (`77.7 MB` Modular App) | XCLoom | Notes |
| --- | --- | --- |
| Simulator 1-file Swift edit | `2.41s` | Measured (`118/2` CAS hits on modular graph) |
| Fresh git worktree build | `1.32s` | Measured (`124/0` shared CAS hits) |
| Warm `.dylib` hot patch | `0.36s` | Measured (`63 KB` patch; like-for-like public OSS runs: `Signal-iOS` `27.37s -> 1.93s` [`14.2x`], `sample-food-truck` `3.81s -> 0.37s` [`10.3x`]) |
| Release archive 1-file edit | `20.3s` (`23.1s` with `.ipa` export) | Unsigned `--adhoc-inspect` direct archive (`archive_seconds`; signed archive pending physical-iPhone run) |
| Cold release archive | `124.0s` (`126.7s` with `.ipa` export) | Unsigned `--adhoc-inspect` direct archive (`archive_seconds`; signed archive pending physical-iPhone run) |

| Delivery Workflow (`77.7 MB` App) | Baseline (TestFlight / `altool`) | XCLoom | Notes |
| --- | --- | --- | --- |
| Formal TestFlight upload (`77.7 MB` `.ipa`) | `67–118s` (`altool`) | `25.1s` | Measured (`xcloom upload-asc`, 15 chunks over a 16-stream HTTP/2 pool) |
| Signed TestFlight local pipeline | `4.0–7.1 min` (`128–284s` archive + `40–49s` export + `67–118s` upload) | not yet measured | Archive + Apple Distribution sign + preflight + upload (Apple `3–5 min` processing remains; `8.8–11.1 min` baseline end-to-end) |
| Daily `.dev` QR OTA to iPhone | `8.8–11.1 min` (via TestFlight) | not yet measured on a device | Side-by-side `.dev` bundle over resumable HTTPS 206 OTA (skips Apple queue) |
| Device UI `.dylib` hot reload | `8.8–11.1 min` (via TestFlight) | not yet measured on a device | Incremental UI patch on device |

## Slim Simulator Pool & Binary Tooling

| Component | Baseline | XCLoom | Measurement / Oracle |
| --- | --- | --- | --- |
| Safe Default slim memory (`xcloom sim boot`) | `1.88 GiB` | `1.50 GiB` (`-20.3%`, `-0.38 GiB`) | macOS `proc_pid_rusage` (`ri_phys_footprint`, `rss_fallback_pids=0`), `scripts/bench/bench-sim-slim-vs-stock.sh --rounds 2` (`2026-11-22`, `iPhone Air`, `iOS 27.3`, `12s` settle). Slims by default (`--stock` opts out) while keeping `widgets`/`store`/`photos` enabled (`147` disabled entries across `19` categories; `24` always-protected daemons). Cold boot `2.37s` -> `2.94s` (`+0.57s` from pre-boot `disabled.plist` backup/merge and `launchd_sim` startup adjustment). |
| Safe Default live `launchd_sim` daemons | `213` | `140` (`-34.3%`) | Process count under `launchd_sim` in `scripts/bench/bench-sim-slim-vs-stock.sh --rounds 2` (`2026-11-22`) |
| App-Aware Auto-Slim memory (`--for MinimalApp.app`) | `1.70 GiB` | `0.72 GiB` (`-57.3%`; unrounded `1.695 -> 0.724 GiB`, `-0.97 GiB`) | macOS `proc_pid_rusage` (`ri_phys_footprint`, `rss_fallback_pids=0`), `scripts/bench/bench-sim-slim-vs-stock.sh --for MinimalApp.app --rounds 2` (`2026-11-22`). Auto-enabled in `xcloom run --smoke`, `xcloom matrix`, and `xcloom test` via `2–15 ms` static entitlement / `Info.plist` / `.appex` / `LC_LOAD_DYLIB` analysis (up to `160` entries; `24` protected, including `com.apple.assistantd` to prevent Spotlight memory leaks, `com.apple.gamed` to prevent XCUITest `DTServiceHub` stalls, and `com.apple.coredevice.dtuhidd` for CoreSimulator/HID bridging). Cold boot `2.49s` -> `3.02s` (`+0.53s` from pre-boot `disabled.plist` backup/merge and `launchd_sim` adjustment). |
| App-Aware live `launchd_sim` daemons (`--for MinimalApp.app`) | `190` | `85` (`-55.3%`) | Process count under `launchd_sim` with `--for MinimalApp.app` (`2026-11-22`); `--stock` restores exact original `disabled.plist` bytes |
| Keychain-free CMS signing (`85 MB` / 27 bundles) | Keychain modal stalls | `0.43s` | 9-run median (`scripts/bench/run-all.sh`, self-signed CMS); verified via `/usr/bin/codesign --verify --deep --strict` |
| Offline `xcloom preflight` (`149 MB` / `85 MB` / `77.7 MB` `.ipa`) | Rejected after upload | `0.66s` dev / `3.11s` app-store (`149 MB`); `0.39s` (`85 MB`); `1.87s` (`77.7 MB`) | 9-run medians on `149 MB` (`scripts/bench/run-all.sh`), single trial on `85 MB`, and production App Store `.ipa` (`77.7 MB`); `31` offline checks (`22` `ITMS-*` rules, including `ITMS-90174` and Privacy Manifest `ITMS-91053`/`ITMS-91056` + `XCLOOM-PRIVACY-SDK-ONLY`, plus `9` `XCLOOM-252-*` dev-marker leak checks; `Swiftfin` simulator capture: `19` passed, `11` errors, `1` warning in `2294.4 ms`) |
| 2x2 four-state UI audit, real SwiftUI app (`apple/sample-food-truck`) | 4 sequential sim passes | `1.44s` (`1441.4 ms` CLI / `1468.6 ms` probe median) | 3-round median (`xcloom canvas matrix-act` on pre-booted slim `iPhone 17`, CLI `[1441.4, 1433.7, 1458.2] ms`, in-process single-RunLoop probe `1468.6 ms`, excludes simulator boot and first app launch; `2026-11-25`, Xcode `27.2`, `xcloom d026aff`, `3954a769e99f`). Standalone `xcloom matrix --repo . --json` or `xcloom matrix --app <APP_PATH> --out <DIR> --json` (also supporting `--device-type`, multi-device `--devices "iphone-se,iphone-pro,ipad"`, repeatable `--tap`, `--open-url`, `--wait-for`, `--open`, and `.xcloom.json` `sim`/`matrix` defaults) defaults to `light, dark, compact, dark-ax-xxxl` (pass `--states` for RTL). Separate single full standalone runs (not speed timings, as wall time covers lease, boot, install, settle, and shutdown) flagged `14` `VIEWPORT_OVERFLOW` findings on `apple/sample-food-truck` (`494pt` `HostingScrollView` overflowing `402pt` viewport in `Dark + AX-XXXL`) and `35` findings on `wikimedia/wikipedia-ios` (`TEXT_TRUNCATION` and `CONTROL_OVERLAPS_TEXT`). |
| 2x2 four-state UI audit, minimal UIKit fixture (`MatrixSweepOracle`) | 4 sequential sim passes | `0.064s` (`63.8 ms` wall / `63 ms` probe median) | 3-round median (`62–78 ms`) on minimal UIKit fixture `MatrixSweepOracle` / booted slim `iPhone 17` (`iOS 27.3`), `822x1808` PNG (`122 KB`), `2` `UILabel` truncation red boxes, `0` leaked simulators (`xcloom canvas matrix-act` default states `Light, 375pt Compact, Dark + AX-XXXL, RTL`). Kept separate from real full-app timings above. |
| Workflow & host-audit tooling (`disk`, `diff-ui`, `xray`, `bsp`, `explain`, `sim daemon`, `sim snapshot`, `e2e`, `ux`) | Manual cleanup / ad-hoc scripts | `78.2 GB` safe reclaimable (`xcloom disk`) | Author's dev Mac audit (`xcloom disk`): `121.7 GB` allocated across `721` items (`96.3 GB` Xcode `DerivedData`), `78.2 GB` safe reclaimable via `xcloom disk prune --safe --apply`. Paired with `xcloom diff-ui` & `xcloom xray --upload` PR cards, `xcloom bsp` for SourceKit-LSP, `xcloom explain --stdin --fix` offline error diagnosis, zero-`axe` resident HID & Accessibility `xcloom sim daemon`, APFS CoW `xcloom sim snapshot`, `xcloom e2e`, and `xcloom ux explore`/`report`. |
| Cloud S3-FIFO CAS eviction (`100k` entries, `7d` TTL) | O(1) LRU eviction (`0.00%` Top-500 hot retention under `50%` cold-PR scan storm) | `1.53M ops/s` (`98.40%` Top-500 hot retention; `+6.18–7.57 pp` hit-rate lift) | `scripts/bench/bench-cloud-algorithms.sh` (`2026-11-27`, `a4dc288`, Mac15,14, `rustc 1.98.0`, `docs/cloud-scheduling-and-cache.md`); `p50 0.58 us`, `p99 1.33 us` at `100k` entries (`2.56–2.71M ops/s` at `20k` Zipf). |
| Cloud Per-Tenant WFQ fair scheduler (`200 / 1k / 3k` queued) | FIFO queue (`0.0909` Jain's fairness; `363.4s` light-tenant median wait) | `8,031 / 3,630 / 1,664 claims/s` (`0.6667` fairness; `-76%` light-tenant wait to `87.4s`) | `scripts/bench/bench-cloud-algorithms.sh` (`2026-11-27`, `a4dc288`, SQLite WAL + covering indexes, `16` worker threads); Free-tenant anti-starvation max wait capped at `301.0s`; enqueues `9.8k–12.5k/s`. |

## Reproduce Locally

To reproduce the checked-in OSS and simulator harnesses, clone `xcloom` and build the release binary first (or pass `--xcloom "$(command -v xcloom)"` if `xcloom` is already installed on your `PATH`):

```bash
git clone https://github.com/xcloom/xcloom.git
cd xcloom
cargo build --release -p xcloom-cli
bash scripts/bench/direct-engine-large-oss.sh --preset all --rounds 3 --wait-load 14 --export-dir tests/corpus/bench/large-oss-direct-engine
bash scripts/bench/direct-engine-food-truck.sh
bash scripts/bench/bench-sim-slim-vs-stock.sh --udid <UDID> --settle-secs 12 --rounds 2
```

To measure your own iOS repository without cloning the benchmark suite, run `xcloom bench` against your app's path (it runs isolated cold builds in temporary worktrees without mutating your working tree). Note: the `xcloom bench` terminal capture shown on this page was recorded on an earlier pre-release build (`94ba00c`, `2026-11-21`, before parallel `xcloom-car` asset compilation landed on `3c39d3c`), where cold build ran `24.22s` vs `23.51s` (`0.97x`), fresh worktree `23.78s -> 0.40s` (`59.45x`), 1-line edit `3.61s -> 2.06s`, and `xcloom hot` `0.53s`; current cold-build numbers (`7.78s` vs `23.90s`, `3.07x`) are in the 6-repo table above:

```bash
xcloom bench --repo /path/to/your-ios-app --rounds 2 --markdown
```
