Skip to content

langgraph: relax type annotation for Command.update #1268

langgraph: relax type annotation for Command.update

langgraph: relax type annotation for Command.update #1268

Triggered via pull request December 16, 2024 17:13
Status Success
Total duration 46m 15s
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/langgraph/langgraph/types.py#L1
......................................... fanout_to_subgraph_10x: Mean +- std dev: 61.2 ms +- 1.7 ms ......................................... fanout_to_subgraph_10x_sync: Mean +- std dev: 52.3 ms +- 0.7 ms ......................................... fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 74.3 ms +- 1.3 ms ......................................... fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 95.0 ms +- 0.9 ms ......................................... fanout_to_subgraph_100x: Mean +- std dev: 613 ms +- 23 ms ......................................... fanout_to_subgraph_100x_sync: Mean +- std dev: 512 ms +- 7 ms ......................................... fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 754 ms +- 11 ms ......................................... fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 947 ms +- 18 ms ......................................... react_agent_10x: Mean +- std dev: 30.7 ms +- 0.6 ms ......................................... react_agent_10x_sync: Mean +- std dev: 22.8 ms +- 0.4 ms ......................................... react_agent_10x_checkpoint: Mean +- std dev: 38.1 ms +- 0.6 ms ......................................... react_agent_10x_checkpoint_sync: Mean +- std dev: 37.0 ms +- 0.4 ms ......................................... react_agent_100x: Mean +- std dev: 340 ms +- 6 ms ......................................... react_agent_100x_sync: Mean +- std dev: 275 ms +- 2 ms ......................................... react_agent_100x_checkpoint: Mean +- std dev: 848 ms +- 8 ms ......................................... react_agent_100x_checkpoint_sync: Mean +- std dev: 842 ms +- 8 ms ......................................... wide_state_25x300: Mean +- std dev: 22.9 ms +- 0.5 ms ......................................... wide_state_25x300_sync: Mean +- std dev: 14.8 ms +- 0.3 ms ......................................... wide_state_25x300_checkpoint: Mean +- std dev: 274 ms +- 13 ms ......................................... wide_state_25x300_checkpoint_sync: Mean +- std dev: 275 ms +- 13 ms ......................................... wide_state_15x600: Mean +- std dev: 26.7 ms +- 0.5 ms ......................................... wide_state_15x600_sync: Mean +- std dev: 17.2 ms +- 0.3 ms ......................................... wide_state_15x600_checkpoint: Mean +- std dev: 473 ms +- 15 ms ......................................... wide_state_15x600_checkpoint_sync: Mean +- std dev: 474 ms +- 14 ms ......................................... wide_state_9x1200: Mean +- std dev: 26.8 ms +- 0.6 ms ......................................... wide_state_9x1200_sync: Mean +- std dev: 17.2 ms +- 0.1 ms ......................................... wide_state_9x1200_checkpoint: Mean +- std dev: 309 ms +- 14 ms ......................................... wide_state_9x1200_checkpoint_sync: Mean +- std dev: 308 ms +- 14 ms
Comparison against main: libs/langgraph/langgraph/types.py#L1
+-----------------------------------------+---------+-----------------------+ | Benchmark | main | changes | +=========================================+=========+=======================+ | fanout_to_subgraph_100x_checkpoint | 783 ms | 754 ms: 1.04x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x | 625 ms | 613 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint_sync | 851 ms | 842 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x | 343 ms | 340 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_sync | 17.3 ms | 17.2 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint_sync | 953 ms | 947 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_sync | 276 ms | 275 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_sync | 22.9 ms | 22.8 ms: 1.00x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint | 850 ms | 848 ms: 1.00x faster | +-----------------------------------------+---------+-----------------------+ | Geometric mean | (ref) | 1.00x faster | +-----------------------------------------+---------+-----------------------+ Benchmark hidden because not significant (19): wide_state_25x300_checkpoint, wide_state_25x300, wide_state_15x600, wide_state_9x1200_checkpoint, wide_state_9x1200, wide_state_15x600_sync, wide_state_15x600_checkpoint, fanout_to_subgraph_10x_checkpoint_sync, react_agent_10x_checkpoint, fanout_to_subgraph_10x_sync, react_agent_10x, fanout_to_subgraph_10x_checkpoint, wide_state_25x300_sync, wide_state_15x600_checkpoint_sync, fanout_to_subgraph_100x_sync, react_agent_10x_checkpoint_sync, fanout_to_subgraph_10x, wide_state_25x300_checkpoint_sync, wide_state_9x1200_checkpoint_sync