Skip to content

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

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

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

Triggered via pull request November 16, 2024 00:56
Status Success
Total duration 48m 2s
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/langgraph/langgraph/pregel/__init__.py#L1
......................................... fanout_to_subgraph_10x: Mean +- std dev: 62.4 ms +- 1.8 ms ......................................... fanout_to_subgraph_10x_sync: Mean +- std dev: 52.4 ms +- 0.7 ms ......................................... WARNING: the benchmark result may be unstable * the standard deviation (9.58 ms) is 10% of the mean (95.1 ms) Try to rerun the benchmark with more runs, values and/or loops. Run 'python -m pyperf system tune' command to reduce the system jitter. Use pyperf stats, pyperf dump and pyperf hist to analyze results. Use --quiet option to hide these warnings. fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 95.1 ms +- 9.6 ms ......................................... fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 95.4 ms +- 1.0 ms ......................................... fanout_to_subgraph_100x: Mean +- std dev: 634 ms +- 31 ms ......................................... fanout_to_subgraph_100x_sync: Mean +- std dev: 510 ms +- 5 ms ......................................... fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 985 ms +- 32 ms ......................................... fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 935 ms +- 19 ms ......................................... react_agent_10x: Mean +- std dev: 31.0 ms +- 0.6 ms ......................................... react_agent_10x_sync: Mean +- std dev: 22.5 ms +- 0.3 ms ......................................... react_agent_10x_checkpoint: Mean +- std dev: 47.2 ms +- 0.8 ms ......................................... react_agent_10x_checkpoint_sync: Mean +- std dev: 36.8 ms +- 0.5 ms ......................................... react_agent_100x: Mean +- std dev: 345 ms +- 7 ms ......................................... react_agent_100x_sync: Mean +- std dev: 272 ms +- 4 ms ......................................... react_agent_100x_checkpoint: Mean +- std dev: 938 ms +- 10 ms ......................................... react_agent_100x_checkpoint_sync: Mean +- std dev: 838 ms +- 10 ms ......................................... wide_state_25x300: Mean +- std dev: 24.4 ms +- 0.5 ms ......................................... wide_state_25x300_sync: Mean +- std dev: 15.5 ms +- 0.2 ms ......................................... wide_state_25x300_checkpoint: Mean +- std dev: 279 ms +- 3 ms ......................................... wide_state_25x300_checkpoint_sync: Mean +- std dev: 266 ms +- 4 ms ......................................... wide_state_15x600: Mean +- std dev: 28.5 ms +- 0.5 ms ......................................... wide_state_15x600_sync: Mean +- std dev: 18.0 ms +- 0.2 ms ......................................... wide_state_15x600_checkpoint: Mean +- std dev: 479 ms +- 4 ms ......................................... wide_state_15x600_checkpoint_sync: Mean +- std dev: 465 ms +- 10 ms ......................................... wide_state_9x1200: Mean +- std dev: 28.4 ms +- 0.6 ms ......................................... wide_state_9x1200_sync: Mean +- std dev: 17.9 ms +- 0.2 ms ......................................... wide_state_9x1200_checkpoint: Mean +- std dev: 313 ms +- 6 ms ......................................... wide_state_9x1200_checkpoint_sync: Mean +- std dev: 297 ms +- 3 ms
Comparison against main: libs/langgraph/langgraph/pregel/__init__.py#L1
+-----------------------------------------+---------+-----------------------+ | Benchmark | main | changes | +=========================================+=========+=======================+ | react_agent_100x_checkpoint | 950 ms | 938 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_checkpoint_sync | 300 ms | 297 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint_sync | 846 ms | 838 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_checkpoint | 482 ms | 479 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_sync | 271 ms | 272 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_checkpoint_sync | 36.5 ms | 36.8 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x | 30.7 ms | 31.0 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_sync | 22.3 ms | 22.5 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_sync | 15.4 ms | 15.5 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600 | 28.1 ms | 28.5 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_checkpoint | 46.6 ms | 47.2 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_sync | 17.7 ms | 18.0 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint_sync | 920 ms | 935 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_100x | 340 ms | 345 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint_sync | 93.7 ms | 95.4 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300 | 24.0 ms | 24.4 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_sync | 51.2 ms | 52.4 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x | 60.9 ms | 62.4 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_sync | 497 ms | 510 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint | 91.9 ms | 95.1 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint | 951 ms | 985 ms: 1.04x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x | 606 ms | 634 ms: 1.05x slower | +-----------------------------------------+---------+-----------------------+ | Geometric mean | (ref) | 1.01x slower | +-----------------------------------------+---------+-----------------------+ Benchmark hidden because not significant (6): wide_state_9x1200_checkpoint, wide_state_25x300_checkpoint, wide_state_25x300_checkpoint_sync, wide_state_15x600_checkpoint_sync, wide_state_9x1200_sync, wide_state_9x1200