Benchmarking Microsoft's MXC sandbox: git jumps from 10ms to 1.24s without a writable temp dir
lemire · x · 2026-10-13
Daniel Lemire benchmarked Microsoft Execution Containers (MXC) — a sandbox where a JSON policy file declares which files a program may read/write and whether it gets network access — for safely running agents like Claude Code or Grok locally.
Findings on a MacBook:
- Over 10ms startup overhead; worse, commands like git stall entirely when seeking a temp directory the sandbox doesn't allow.
- Without a writable temp dir: git --version goes from 10ms to 1.24s, git status from 31ms to 1.26s, python3 -c pass from 18ms to 1.37s.
- Workaround: set TMPDIR to an MXC-writable location. With the shim allowed to write a cache, overhead drops substantially (git status 31ms→55ms, python 18ms→53ms) but remains noticeable.
Verdict: a sound idea, but milliseconds add up and hurt quality of life.
Related event: Microsoft's Open-Source MXC Sandbox Slows git by 124x in Test(2 posts)→
More from coding & agent
- Dev ships throwaway Postgres for agents: pg19 via pglite on Cloudflare DO over raw TCP — ritakozlov · 2026-11-29
- Product idea: cloud Android VMs and home WiFi proxies to make agents look human — Darpinian · 2026-11-29
- 38 free agent skills distilled from shipping three live AI products — PawelHuryn · 2026-11-29
- Step 5: run evals on synthetic data pre-launch, watch real traces after — PawelHuryn · 2026-11-29
- Break your agent before attackers do: 6 tests mapped to OWASP LLM Top 10 — PawelHuryn · 2026-11-29
- PM shares playbook for shipping 4 customer-facing Claude agents into production — PawelHuryn · 2026-11-29