← Demos

Speed and memory

Resume a 366 MB session

pig opens a 366 MB session file and answers; /usr/bin/time prints the peak memory of the run.

0:12 · pig 0.7.0 · recorded 2026-11-08 · model replies are scripted; tool calls and commands are real · captions in English, under the clip

What you are seeing

  • resume-365.jsonl is 366 MB (15,969 turns), made by the generator that produced the benchmark's session files.
  • pig --session resume-365.jsonl -p 'Say hello' resumes the whole session and answers one question. The model is scripted.
  • /usr/bin/time prints the peak memory and the elapsed time of this one run. This is one run in print mode on a shared host; the median of 15 runs in the terminal UI, against Pi, is on the Benchmarks page.

Try it yourself

  1. Resume a session file and print the peak memory

    /usr/bin/time -f 'peak memory %M KiB, %e s' pig --session resume-365.jsonl -p 'Say hello'

Files: MP4 · WebM · Captions (VTT) · PiG source

Next: Build a Piglet into one signed binary