# Checkpoint growth over 100 real tool round trips, create_agent, durability=sync. pin {'langgraph': '1.2.22 (tag 08a20169)', 'langchain': '1.5.0', 'langchain-core': '1.8.0', 'langgraph-checkpoint': '4.3.2', 'langgraph-checkpoint-sqlite': '3.1.3'}.
# {'name': 'the x86 server guest', 'cpu': 'AMD EPYC 7452 (KVM guest, 32 vCPU, 48 GiB, no GPU)', 'platform': 'Linux-6.8.0-147-generic-x86_64-with-glibc2.39', 'python': '3.13.18', 'loadavg_1_5_15': ['3.58', '4.35', '8.02'], 'ollama_ps': [{'name': 'qwen3:4b-instruct-2507-q4_K_M', 'size_vram': 0, 'context_length': 8192}, {'name': 'qwen3:8b', 'size_vram': 0, 'context_length': 8192}]}
# model {'provider': 'ollama 0.31.1 (CPU)', 'model': 'qwen3:4b-instruct-2507-q4_K_M', 'temperature': 0, 'seed': 42, 'think/reasoning': False, 'num_ctx': 16384}
# task: read_page cursor tool, 100 pages, each page names the next cursor (a sha1 prefix), so the model must make one call per turn. system prompt: "You read a document page by page with the read_page tool. Start with cursor_id 'start'. Each page names the next cursor. Call read_page with exactly that cursor, one call per turn, never two at once. When a page says END, reply with the single word DONE."
# sqlite-delta: create_agent(state_schema=AgentState subclass with messages: Annotated[list, DeltaChannel(_messages_delta_reducer)]), default snapshot_frequency

## sqlite: 100 tool round trips (0 bad cursors, 0 model calls with more than one tool call), 101 model calls, 202 messages, last 'DONE', wall 525.5 s, model 524.3 s, last prompt 7130 tokens
   saver.put us at checkpoint #1, #50, #100, #150, #200: [3968, 5524, 3120, 3691, 4456] (sync, in the background executor, awaited)
   checkpoint rows=203 total bytes=10132489; row bytes at #1, #50, #100, #150, #200: [689, 25072, 49512, 74045, 98637]; largest 99390; mean 49914
   writes rows=403 bytes=111623 (messages channel 98824); checkpoints + writes = 10244112 bytes; checkpoints / writes = 90.8
   get_state at the end, 30 reads after 3 warmups: median 2.59 ms (p10 2.58, p90 2.66); 202 messages

## memory: 100 tool round trips (0 bad cursors, 0 model calls with more than one tool call), 101 model calls, 202 messages, last 'DONE', wall 516.4 s, model 515.7 s, last prompt 7130 tokens
   saver.put us at checkpoint #1, #50, #100, #150, #200: [80, 479, 1230, 1574, 2081] (sync, in the background executor, awaited)
   InMemorySaver: 203 checkpoints (118969 bytes without channel values); blobs 606 entries, 10002635 bytes, of which messages 9989570 bytes in 202 versions; messages blob at version #1, #50, #100: [861, 24630, 49074], last 98779; writes 111624 bytes

## sqlite-delta: 100 tool round trips (0 bad cursors, 0 model calls with more than one tool call), 101 model calls, 202 messages, last 'DONE', wall 515.7 s, model 514.5 s, last prompt 7130 tokens
   saver.put us at checkpoint #1, #50, #100, #150, #200: [1529, 874, 3322, 1662, 3629] (sync, in the background executor, awaited)
   checkpoint rows=203 total bytes=286606; row bytes at #1, #50, #100, #150, #200: [470, 747, 49515, 750, 98638]; largest 98638; mean 1412
   writes rows=403 bytes=111777 (messages channel 98978); checkpoints + writes = 398383 bytes; checkpoints / writes = 2.6
   get_state at the end, 30 reads after 3 warmups: median 2.76 ms (p10 2.75, p90 2.8); 202 messages

