Benchmarks
PiG 0.8.0 against Pi 1.6.0. The numbers in the hero and the strengths of the home page come from this page.
How we measured
- Host: 2 x Intel Xeon Platinum 8468, Linux 7.0.0-38-generic, 4 pinned cores per program (taskset), warm OS file cache.
- 15 measured runs per figure after 1 discarded warm-up run; headline values are medians. Peak RSS is max(VmHWM, max sampled VmRSS at 50 ms).
- PiG 0.8.0: published pig-0.8.0-linux-amd64.tar.gz (commit 73585394f40c, pig binary sha256 107179c71474929b).
- Pi 1.6.0: published @earendil-works/pi-coding-agent@1.6.0 on Node.js v24.22.0, bare (no extensions).
- Session files (seeded generator): resume-365.jsonl (382,733,519 bytes, sha256 2ee169f4a81b) and fork-427.jsonl (447,779,848 bytes, sha256 f11c4b1279fa).
- Smaller session files from the same generator: session-1.jsonl (1,176,281 bytes, sha256 d16cc081d8b2) and session-10.jsonl (10,503,337 bytes, sha256 bebc83838579).
- The session files hold user and assistant messages, tool results and compaction entries. They hold no extension custom entries.
- Memory is the peak resident set size (RSS), the physical memory the process held.
- First start: the config directory is empty, as on a new install. Repeat start: the config directory is left over from an earlier run. Both runs have a warm file cache.
- These are 0.8.0 numbers. We measure again for each release.
Memory
Peak memory, in MiB (1,048,576 bytes), by the size of the session file. The ratio is the Pi figure divided by the PiG figure.
| Task | Pi 1.6.0 | PiG 0.8.0 | Ratio |
|---|---|---|---|
| Resume a 1.1 MiB session | 128.6 MiB | 56.3 MiB | 2.3x |
| Resume a 10 MiB session | 155.8 MiB | 61.1 MiB | 2.5x |
| Resume a 365 MiB session | 634.3 MiB | 82.2 MiB | 7.7x |
| Open a 1.1 MiB session and run /fork | 141.2 MiB | 60.1 MiB | 2.3x |
| Open a 10 MiB session and run /fork | 187.1 MiB | 74.4 MiB | 2.5x |
| Open a 427 MiB session and run /fork | 1155.7 MiB | 147.5 MiB | 7.8x |
The difference grows with the size of the session file.
Startup
Time from starting the program to the first usable prompt, with no extensions, and the memory at that prompt.
| Start | Pi 1.6.0 | PiG 0.8.0 |
|---|---|---|
| First start | 420 ms | 39.9 ms |
| Repeat start | 419.5 ms | 34.4 ms |
| Memory at the prompt, repeat start | 120.1 MiB | 43.7 MiB |
Across 15 runs, Pi ranged 410.7 to 459.3 ms on first start and 410.7 to 443.0 ms on repeat start; PiG ranged 34.7 to 59.9 ms and 28.0 to 40.9 ms.
Many sessions in one process
One pig --mode rpc --listen process can serve many RPC sessions at once. The other way is one pig --mode rpc process for each session. This is the memory of each.
| Sessions at once | A process each | One process | Ratio |
|---|---|---|---|
| 1 | 45.2 MB (45.1 to 45.9) | 47.7 MB (47.3 to 48.2) | 0.9x |
| 10 | 124.2 MB (123.3 to 124.8) | 64.0 MB (63.0 to 65.0) | 1.9x |
| 64 | 605.0 MB (601.2 to 608.5) | 130.1 MB (126.0 to 131.7) | 4.7x |
| Each session after the first | 8.9 MB | 1.3 MB | 6.8x |
- Both ways are PiG 0.8.0, on the same host as above. This is not a comparison with Pi.
- Each session runs 5 scripted turns with tool calls against a local scripted model, with no extensions.
- Memory is the proportional set size (PSS) summed over the processes, read 40 seconds after the last turn. MB is 1,000,000 bytes.
- Each figure is the median of 5 runs, with the lowest and the highest run beside it.
- One
--listenprocess serves at most 64 sessions at a time in 0.8.0.
Size
The pig executable inside each published v0.8.0 release archive. MB is 1,000,000 bytes.
| Target | pig |
|---|---|
| linux/amd64 | 63.0 MB |
| linux/arm64 | 58.5 MB |
| darwin/arm64 | 60.2 MB |
| windows/amd64 | 64.7 MB |
The 0.8.0 changelog gives two sizes for programs that embed PiG, built on linux/amd64 apart from the table above: examples/headless is 35.7 MB, and a program that imports only the model layer (ai) is 14.5 MB.
More
The buffon benchmark site holds longer runs against Pi (PiG 0.5.0, measured 2026-10-19). The release notes for each version are on News.