Skip to content

checkpoint postgres: add a shallow checkpointer #1304

checkpoint postgres: add a shallow checkpointer

checkpoint postgres: add a shallow checkpointer #1304

Triggered via pull request December 19, 2024 18:03
Status Success
Total duration 46m 19s
Artifacts

bench.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

1 warning and 2 notices
benchmark
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Benchmark results: libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py#L1
......................................... fanout_to_subgraph_10x: Mean +- std dev: 60.5 ms +- 1.0 ms ......................................... fanout_to_subgraph_10x_sync: Mean +- std dev: 51.9 ms +- 1.0 ms ......................................... fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 73.5 ms +- 1.0 ms ......................................... fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 94.2 ms +- 1.7 ms ......................................... fanout_to_subgraph_100x: Mean +- std dev: 632 ms +- 31 ms ......................................... fanout_to_subgraph_100x_sync: Mean +- std dev: 512 ms +- 10 ms ......................................... fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 794 ms +- 26 ms ......................................... fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 954 ms +- 23 ms ......................................... react_agent_10x: Mean +- std dev: 30.6 ms +- 0.7 ms ......................................... react_agent_10x_sync: Mean +- std dev: 23.0 ms +- 0.3 ms ......................................... react_agent_10x_checkpoint: Mean +- std dev: 37.9 ms +- 1.0 ms ......................................... react_agent_10x_checkpoint_sync: Mean +- std dev: 36.9 ms +- 0.4 ms ......................................... react_agent_100x: Mean +- std dev: 338 ms +- 7 ms ......................................... react_agent_100x_sync: Mean +- std dev: 272 ms +- 2 ms ......................................... react_agent_100x_checkpoint: Mean +- std dev: 831 ms +- 8 ms ......................................... react_agent_100x_checkpoint_sync: Mean +- std dev: 829 ms +- 13 ms ......................................... wide_state_25x300: Mean +- std dev: 23.0 ms +- 0.6 ms ......................................... wide_state_25x300_sync: Mean +- std dev: 14.7 ms +- 0.3 ms ......................................... wide_state_25x300_checkpoint: Mean +- std dev: 275 ms +- 14 ms ......................................... wide_state_25x300_checkpoint_sync: Mean +- std dev: 274 ms +- 14 ms ......................................... wide_state_15x600: Mean +- std dev: 26.7 ms +- 0.7 ms ......................................... wide_state_15x600_sync: Mean +- std dev: 17.2 ms +- 0.3 ms ......................................... wide_state_15x600_checkpoint: Mean +- std dev: 471 ms +- 16 ms ......................................... wide_state_15x600_checkpoint_sync: Mean +- std dev: 469 ms +- 14 ms ......................................... wide_state_9x1200: Mean +- std dev: 26.7 ms +- 0.6 ms ......................................... wide_state_9x1200_sync: Mean +- std dev: 17.1 ms +- 0.1 ms ......................................... wide_state_9x1200_checkpoint: Mean +- std dev: 310 ms +- 16 ms ......................................... wide_state_9x1200_checkpoint_sync: Mean +- std dev: 304 ms +- 13 ms
Comparison against main: libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py#L1
+-----------------------------------------+---------+-----------------------+ | Benchmark | main | changes | +=========================================+=========+=======================+ | fanout_to_subgraph_10x_checkpoint | 74.4 ms | 73.5 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint_sync | 94.8 ms | 94.2 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint | 835 ms | 831 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_sync | 273 ms | 272 ms: 1.00x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_sync | 14.7 ms | 14.7 ms: 1.00x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_checkpoint_sync | 36.7 ms | 36.9 ms: 1.00x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600 | 26.5 ms | 26.7 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300 | 22.8 ms | 23.0 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200 | 26.5 ms | 26.7 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint_sync | 943 ms | 954 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_checkpoint | 37.5 ms | 37.9 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_sync | 22.5 ms | 23.0 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x | 608 ms | 632 ms: 1.04x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint | 758 ms | 794 ms: 1.05x slower | +-----------------------------------------+---------+-----------------------+ | Geometric mean | (ref) | 1.01x slower | +-----------------------------------------+---------+-----------------------+ Benchmark hidden because not significant (14): wide_state_15x600_checkpoint_sync, wide_state_15x600_checkpoint, react_agent_100x, wide_state_9x1200_checkpoint_sync, fanout_to_subgraph_100x_sync, fanout_to_subgraph_10x, react_agent_100x_checkpoint_sync, fanout_to_subgraph_10x_sync, wide_state_9x1200_sync, wide_state_15x600_sync, wide_state_25x300_checkpoint_sync, react_agent_10x, wide_state_25x300_checkpoint, wide_state_9x1200_checkpoint