Skip to content

lib: When copying checkpoint, make it a child of the parent #853

lib: When copying checkpoint, make it a child of the parent

lib: When copying checkpoint, make it a child of the parent #853

Triggered via pull request November 16, 2024 01:04
Status Success
Total duration 48m 29s
Artifacts

bench.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

1 warning and 2 notices
benchmark
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Benchmark results: libs/checkpoint/langgraph/checkpoint/base/__init__.py#L1
......................................... fanout_to_subgraph_10x: Mean +- std dev: 61.9 ms +- 1.7 ms ......................................... fanout_to_subgraph_10x_sync: Mean +- std dev: 52.6 ms +- 1.1 ms ......................................... fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 93.6 ms +- 8.8 ms ......................................... fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 95.7 ms +- 1.6 ms ......................................... fanout_to_subgraph_100x: Mean +- std dev: 624 ms +- 30 ms ......................................... fanout_to_subgraph_100x_sync: Mean +- std dev: 508 ms +- 6 ms ......................................... fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 979 ms +- 44 ms ......................................... fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 941 ms +- 21 ms ......................................... react_agent_10x: Mean +- std dev: 31.2 ms +- 0.6 ms ......................................... react_agent_10x_sync: Mean +- std dev: 22.8 ms +- 0.4 ms ......................................... react_agent_10x_checkpoint: Mean +- std dev: 47.8 ms +- 1.3 ms ......................................... react_agent_10x_checkpoint_sync: Mean +- std dev: 37.3 ms +- 0.8 ms ......................................... react_agent_100x: Mean +- std dev: 345 ms +- 5 ms ......................................... react_agent_100x_sync: Mean +- std dev: 272 ms +- 4 ms ......................................... react_agent_100x_checkpoint: Mean +- std dev: 976 ms +- 17 ms ......................................... react_agent_100x_checkpoint_sync: Mean +- std dev: 871 ms +- 15 ms ......................................... wide_state_25x300: Mean +- std dev: 24.5 ms +- 0.4 ms ......................................... wide_state_25x300_sync: Mean +- std dev: 15.7 ms +- 0.3 ms ......................................... wide_state_25x300_checkpoint: Mean +- std dev: 282 ms +- 4 ms ......................................... wide_state_25x300_checkpoint_sync: Mean +- std dev: 270 ms +- 4 ms ......................................... wide_state_15x600: Mean +- std dev: 28.7 ms +- 0.5 ms ......................................... wide_state_15x600_sync: Mean +- std dev: 18.1 ms +- 0.3 ms ......................................... wide_state_15x600_checkpoint: Mean +- std dev: 485 ms +- 5 ms ......................................... wide_state_15x600_checkpoint_sync: Mean +- std dev: 468 ms +- 5 ms ......................................... wide_state_9x1200: Mean +- std dev: 28.5 ms +- 0.6 ms ......................................... wide_state_9x1200_sync: Mean +- std dev: 18.0 ms +- 0.2 ms ......................................... wide_state_9x1200_checkpoint: Mean +- std dev: 317 ms +- 4 ms ......................................... wide_state_9x1200_checkpoint_sync: Mean +- std dev: 301 ms +- 5 ms
Comparison against main: libs/checkpoint/langgraph/checkpoint/base/__init__.py#L1
+-----------------------------------------+---------+-----------------------+ | Benchmark | main | changes | +=========================================+=========+=======================+ | react_agent_100x_sync | 271 ms | 272 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_checkpoint | 482 ms | 485 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_checkpoint_sync | 464 ms | 468 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_checkpoint | 314 ms | 317 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200 | 28.3 ms | 28.5 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_checkpoint | 279 ms | 282 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_sync | 17.9 ms | 18.0 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_checkpoint_sync | 266 ms | 270 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_100x | 340 ms | 345 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x | 60.9 ms | 61.9 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x | 30.7 ms | 31.2 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_sync | 17.7 ms | 18.1 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600 | 28.1 ms | 28.7 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_sync | 15.4 ms | 15.7 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300 | 24.0 ms | 24.5 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_checkpoint_sync | 36.5 ms | 37.3 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_sync | 497 ms | 508 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint_sync | 93.7 ms | 95.7 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_sync | 22.3 ms | 22.8 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint_sync | 920 ms | 941 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_checkpoint | 46.6 ms | 47.8 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_sync | 51.2 ms | 52.6 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint | 950 ms | 976 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint | 951 ms | 979 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x | 606 ms | 624 ms: 1.03x slower | +---------------------------------------