通过复制式写入分支技术为 AI 代理提供亚毫秒级的虚拟机沙箱
通过写时复制分支技术为 AI 代理提供小于毫秒的虚拟机沙箱
--- ## 试试看 ```bash curl -X POST https://api.zeroboot.dev/v1/exec \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer zb_demo_hn2026' \ -d '{"code":"import numpy as np; print(np.random.rand(3))"}' ``` ## 基准测试
| Metric | Zeroboot | E2B | microsandbox | Daytona |
|---|---|---|---|---|
| 生成延迟 p50 | 0.79ms | ~150ms | ~200ms | ~27ms |
| Spawn 延迟 p99 | 1.74ms | ~300ms | ~400ms | ~90ms |
| 每个沙箱的内存 | ~265KB | ~128MB | ~50MB | ~50MB |
| fork + exec (Python) | ~8ms | - | - | - |
| 1000 并发分支 | 815ms | - | - | - |
| 每个沙箱都是一台真正的 KVM 虚拟机,具有硬件强制的内存隔离。 |
Firecracker snapshot ──► mmap(MAP_PRIVATE) ──► KVM VM + restored CPU state
(copy-on-write) (~0.8ms)暂无开放 Issues,或尚未同步最近议题。