PiG Documentation

Guides and references for configuring, using, and extending PiG.

Harness benchmarks

Every harness below talks to the same local mock model. The mock answers each request with one fixed reply over the harness's own wire protocol (OpenAI Chat Completions, OpenAI Responses, or Anthropic Messages), so the model adds no variance. The differences come from the harness: process startup, request construction, streaming, Session I/O, and teardown.

These numbers do not measure model quality or task success. pigeval live runs fixed coding tasks with a real model for that.

Measured 2026-09-23T11:11:39Z on Linux-6.18.44-fc-v37-x86_64-with-glibc2.39 (x86_64, 1 CPUs). Each scenario ran 1 warm-up run and 10 measured runs. Prompt: Say hello.

Harnesses

Harness
Version
Version command output
Status
PiGnot recordedpig --version: 0.87.1measured
Pi0.87.1pi --version: 0.87.1measured

Version is each harness's own version. Version command output records the startup command separately. PiG's --version prints its composite version, PiG release then Pi release (D63).

Startup (--version)

Harness
Median
p90
CPU
Peak RSS
PiG21.5 ms22.4 ms21.0 ms24.6 MiB
Pi300.3 ms309.6 ms299.0 ms101.5 MiB

One prompt, streamed reply

Harness
Median
p90
CPU
Peak RSS
Requests
First request
System prompt
Tools
PiG29.1 ms30.7 ms27.9 ms29.8 MiB15,655 B2,466 B4
Pi439.8 ms453.7 ms436.6 ms110.5 MiB15,766 B2,656 B4

One prompt after resuming a large Session (2,000 exchanges)

Harness
Median
p90
CPU
Peak RSS
Requests
First request
System prompt
Tools
PiG128.7 ms135.1 ms124.6 ms49.4 MiB1425,203 B2,454 B4
Pi614.6 ms626.8 ms608.4 ms126.4 MiB1425,315 B2,645 B4

Peak RSS is the largest single process in the harness's process tree. Request sizes are the bytes of the HTTP request body.

Reproduce

make setup SETUP_ARGS=--harnesses=all   # installs the pinned versions above
make evals

Results depend on the machine. Compare numbers from one run only. The harness registry, including every command line, is evals/harnesses.toml; the method is in evals/README.md.

PiG project documentation · MIT License