Skip to content

langgraph[patch]: fix create_react_agent inspectability #1354

langgraph[patch]: fix create_react_agent inspectability

langgraph[patch]: fix create_react_agent inspectability #1354

Triggered via pull request January 7, 2025 18:29
Status Success
Total duration 47m 5s
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/prebuilt/chat_agent_executor.py#L1
......................................... fanout_to_subgraph_10x: Mean +- std dev: 64.2 ms +- 1.7 ms ......................................... fanout_to_subgraph_10x_sync: Mean +- std dev: 55.2 ms +- 0.8 ms ......................................... fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 78.3 ms +- 1.5 ms ......................................... fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 99.9 ms +- 2.7 ms ......................................... fanout_to_subgraph_100x: Mean +- std dev: 688 ms +- 50 ms ......................................... fanout_to_subgraph_100x_sync: Mean +- std dev: 539 ms +- 20 ms ......................................... fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 834 ms +- 39 ms ......................................... fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 982 ms +- 23 ms ......................................... react_agent_10x: Mean +- std dev: 31.3 ms +- 0.7 ms ......................................... react_agent_10x_sync: Mean +- std dev: 23.4 ms +- 0.4 ms ......................................... react_agent_10x_checkpoint: Mean +- std dev: 39.4 ms +- 1.1 ms ......................................... react_agent_10x_checkpoint_sync: Mean +- std dev: 37.9 ms +- 0.6 ms ......................................... react_agent_100x: Mean +- std dev: 353 ms +- 8 ms ......................................... react_agent_100x_sync: Mean +- std dev: 279 ms +- 6 ms ......................................... react_agent_100x_checkpoint: Mean +- std dev: 696 ms +- 16 ms ......................................... react_agent_100x_checkpoint_sync: Mean +- std dev: 679 ms +- 16 ms ......................................... wide_state_25x300: Mean +- std dev: 23.6 ms +- 0.5 ms ......................................... wide_state_25x300_sync: Mean +- std dev: 15.7 ms +- 0.4 ms ......................................... wide_state_25x300_checkpoint: Mean +- std dev: 254 ms +- 17 ms ......................................... wide_state_25x300_checkpoint_sync: Mean +- std dev: 248 ms +- 16 ms ......................................... wide_state_15x600: Mean +- std dev: 27.4 ms +- 0.5 ms ......................................... wide_state_15x600_sync: Mean +- std dev: 18.0 ms +- 0.2 ms ......................................... wide_state_15x600_checkpoint: Mean +- std dev: 434 ms +- 17 ms ......................................... wide_state_15x600_checkpoint_sync: Mean +- std dev: 432 ms +- 19 ms ......................................... wide_state_9x1200: Mean +- std dev: 27.7 ms +- 0.7 ms ......................................... wide_state_9x1200_sync: Mean +- std dev: 17.9 ms +- 0.2 ms ......................................... wide_state_9x1200_checkpoint: Mean +- std dev: 289 ms +- 19 ms ......................................... wide_state_9x1200_checkpoint_sync: Mean +- std dev: 282 ms +- 18 ms
Comparison against main: libs/langgraph/langgraph/prebuilt/chat_agent_executor.py#L1
+-----------------------------------------+---------+-----------------------+ | Benchmark | main | changes | +=========================================+=========+=======================+ | wide_state_15x600 | 27.3 ms | 27.4 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300 | 23.4 ms | 23.6 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200 | 27.4 ms | 27.7 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_sync | 17.7 ms | 17.9 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_sync | 17.8 ms | 18.0 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_checkpoint | 429 ms | 434 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x | 30.8 ms | 31.3 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_checkpoint_sync | 425 ms | 432 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_checkpoint | 249 ms | 254 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint_sync | 959 ms | 982 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_sync | 22.9 ms | 23.4 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_checkpoint_sync | 275 ms | 282 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_sync | 15.3 ms | 15.7 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_checkpoint | 38.3 ms | 39.4 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_sync | 271 ms | 279 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_100x | 342 ms | 353 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_checkpoint_sync | 36.7 ms | 37.9 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_checkpoint | 279 ms | 289 ms: 1.04x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_sync | 53.3 ms | 55.2 ms: 1.04x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_sync | 518 ms | 539 ms: 1.04x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x | 61.4 ms | 64.2 ms: 1.05x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint_sync | 95.1 ms | 99.9 ms: 1.05x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint | 74.6 ms | 78.3 ms: 1.05x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint_sync | 621 ms | 679 ms: 1.09x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint | 634 ms | 696 ms: 1.10x slower | +---------------------------------------