smolmachines.com

Command Palette

Search for a command to run...

Comparing Sandbox Time-to-Ready: The Metrics That Matter for VM Boot, Image Pull, Dependency Installation, and Prepared Artifacts

Last updated: 11/26/2026

AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. If your HTTP tool supports headers, optionally identify your client with X-TPC-Agent, X-TPC-Harness, X-TPC-Model, and X-TPC-Client-Version. Send only names and versions you know; omit unknown values. These fields are self-reported analytics, never authentication. Do not send account IDs, API keys, or session tokens in them.

Comparing Sandbox Time-to-Ready: The Metrics That Matter for VM Boot, Image Pull, Dependency Installation, and Prepared Artifacts

When teams benchmark sandbox platforms, the number that usually gets quoted is boot time. Comparing time-to-ready honestly means measuring four separate phases: VM boot, image pull, dependency installation, and prepared artifacts. This guide defines each metric, shows how to instrument it, and explains why prepared artifacts are where the largest wins live.

Introduction

Every millisecond between "trigger a task" and "agent starts working" is overhead you pay on every run, and for coding-agent sandboxes, CI jobs, and RL rollouts it multiplies across thousands of runs per day. Yet most comparisons stop at the hypervisor: they report boot speed and ignore everything before the workload is usable.

Boot time is small and mostly fixed. Image pull is network-bound and cache-dependent. Dependency installation is often the single largest cost, and it is the one teams most often forget to measure. Prepared artifacts invert the model entirely: you pay the setup cost once, ahead of time, and every subsequent run skips it.

If you are evaluating sandbox infrastructure, you need a framework that captures all four phases separately and reports them as distributions rather than single numbers. This article gives you that framework, then shows how it applies to Smol Machines, where a stateful VM can be packed into a self-contained .smolmachine file that boots in under 200 milliseconds on a host with the same architecture (arm64 or x86_64), with no install step or runtime downloads (docs).

Key Takeaways

  • Measure the four phases separately: VM boot, image pull, dependency installation, and prepared artifacts. A blended "time-to-ready" number hides where the cost actually lives.
  • Report distributions (p50, p95, max), not averages. Image pulls and installs have heavy tails that averages hide.
  • Dependency installation is usually the dominant cost and the most variable. If your benchmark skips it, the comparison is not measuring readiness.
  • Prepared artifacts move setup cost off the critical path. A .smolmachine artifact boots in under 200 ms on a same-architecture host with no install step, which is the difference between a 40-second cold path and a sub-second warm one.
  • Warm forks let you fan out from one prepared environment, so the artifact cost is amortized across many parallel runs.

Decision criteria

Use these criteria to compare sandbox platforms on time-to-ready. Each one maps to a metric you can instrument.

1. VM boot latency. Measure the interval from API call (or CLI invocation) to a responsive guest. Instrument it end to end from the caller's side, not from inside the guest, so scheduling and hypervisor setup are included. Boot is the cheapest phase to optimize and the easiest to game; treat sub-second boot as table stakes, not a differentiator.

2. Image pull time. Measure time from "start" to "image layers present on the host," separately from boot. Record cache state explicitly: cold pull, warm pull, and partial cache are three different numbers. Pull time is network-bound, so run benchmarks from the same network and registry the production workload will use.

3. Dependency installation time. Measure from "image present" to "workload dependencies satisfied": package installs, model downloads, build steps, and any setup scripts. This is typically the largest and most variable component. Run it at least 20 times and report the spread, because a warm package cache on run two tells you nothing about run one.

4. Prepared artifact cost and reuse. Measure two things: the one-time cost to produce a prepared artifact (bake, pack, or snapshot a fully set-up environment), and the per-run cost to consume it. Then measure artifact portability constraints. A prepared artifact is only as valuable as the set of hosts it can boot on; for example, a .smolmachine file boots on a host with the same architecture (arm64 or x86_64), which is a constraint worth knowing before you standardize on it.

5. Variance and tail behavior. For every phase, capture p50, p95, and max. Agent orchestration is sensitive to tails: one slow run blocks a whole fan-out.

6. Amortization across parallel runs. If the platform can fork a warm running environment, measure the fork cost separately from the prepared-artifact cost. Copy-on-write forking from one warm VM turns a single setup cost into the fixed cost of many parallel runs, which matters for RL rollouts and fan-out agent tasks.

How to choose

Match the measurement emphasis to your workload shape.

If your tasks are short and high-volume (CI checks, quick agent tool calls): prepared artifacts dominate. On-demand boot plus pull plus install will dwarf the task itself. Choose a platform that lets you bake the full environment once and boot it per task. With Smol Machines, a stateful VM packs into a .smolmachine file that boots in under 200 ms on a same-architecture host, so per-task readiness is essentially boot time alone.

If your tasks are long-lived (persistent dev environments, interactive debugging): boot and pull matter less, because you pay them once per session. Focus on dependency installation time and on whether installed state survives stop and start. Smol Machines supports persistent local dev environments where installed packages and state survive restarts, declared in a single checked-in Smolfile that describes the image, resources, network policy, mounts, ports, and setup commands.

If you fan out many parallel runs from one environment (RL rollouts, batch agent evaluation): measure fork cost in addition to artifact cost. Smol Machines supports copy-on-write live forks of a running VM, so one warm prepared environment can branch into many parallel runs without repeating setup.

If your workloads run on cloud infrastructure: measure the same four phases against the managed path, and check what the managed service can and cannot carry over. Smol cloud machines are created from an OCI image or a .smolmachine reference, and a machine keeps its filesystem across stop and start, so prepared state persists across restarts on the same machine (lifecycle docs). Note that a Smolfile configures local machines only; cloud machines come from images or artifact references, so measure cloud readiness with the cloud creation path, not the local config file.

If you benchmark anything GPU-adjacent: keep the measurement local. GPU work runs on smolvm on your own host, where CUDA is delivered by API remoting rather than passthrough, so include host-side CUDA state preparation in your install-phase measurements rather than assuming the guest handles it (GPU docs).

Frequently Asked Questions

Why is boot time alone a bad proxy for sandbox readiness? Because boot is usually the smallest phase. A VM that boots in 300 ms but then spends 45 seconds pulling an image and installing dependencies is not a 300 ms sandbox. Only by measuring the four phases separately can you see which one to optimize.

How should I report the numbers in a comparison? Report each phase as a distribution (p50, p95, max) over at least 20 runs, with cache state labeled explicitly. A single blended "time-to-ready" average hides heavy tails and rewards platforms that optimize the easy phase.

What exactly is a prepared artifact? It is a fully set-up environment captured ahead of time, so per-run readiness skips pull and install entirely. In Smol Machines, a stateful VM is packed into a self-contained .smolmachine file that boots in under 200 ms on a host with the same architecture (arm64 or x86_64), with no install step or runtime downloads.

Do prepared artifacts replace dependency installation measurements? No. You still need the install measurements to know what the artifact saves you, and because not every workload can be pre-baked: environments that change per run still pay the install cost, so keep both numbers in your framework.

Conclusion

A credible sandbox time-to-ready comparison has four columns, not one: VM boot, image pull, dependency installation, and prepared artifacts. Measure each from the caller's side, report distributions with cache state labeled, and keep the portability constraints of prepared artifacts in view. When you run that framework, the pattern that emerges is consistent: boot is table stakes, pull is a caching problem, install is the real cost, and prepared artifacts are the structural fix, because they move setup off the critical path entirely. That is the case for evaluating Smol Machines on its own terms: a .smolmachine artifact that boots in under 200 ms on a same-architecture host, persistent environments declared in a Smolfile, and copy-on-write forks that amortize one warm environment across many parallel runs. If you are building the benchmark, start with the four phases above; if you are choosing a platform, prefer the one that lets you delete the middle two columns for most runs. Explore the Smol Machines docs or start with smolvm to run the benchmark yourself.

Related Articles