Skip to content

langgraph[patch]: rename state_modifier -> preprocess_model_inputs in create_react_agent #101

langgraph[patch]: rename state_modifier -> preprocess_model_inputs in create_react_agent

langgraph[patch]: rename state_modifier -> preprocess_model_inputs in create_react_agent #101

Triggered via pull request September 17, 2024 21:20
Status Success
Total duration 46m 5s
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/prebuilt/chat_agent_executor.py#L1
......................................... fanout_to_subgraph_10x: Mean +- std dev: 56.2 ms +- 1.1 ms ......................................... fanout_to_subgraph_10x_sync: Mean +- std dev: 51.0 ms +- 3.4 ms ......................................... fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 74.7 ms +- 1.6 ms ......................................... fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 78.4 ms +- 1.0 ms ......................................... fanout_to_subgraph_100x: Mean +- std dev: 550 ms +- 17 ms ......................................... fanout_to_subgraph_100x_sync: Mean +- std dev: 475 ms +- 5 ms ......................................... fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 763 ms +- 31 ms ......................................... fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 746 ms +- 6 ms ......................................... react_agent_10x: Mean +- std dev: 38.1 ms +- 0.7 ms ......................................... react_agent_10x_sync: Mean +- std dev: 29.4 ms +- 0.2 ms ......................................... react_agent_10x_checkpoint: Mean +- std dev: 51.3 ms +- 1.4 ms ......................................... react_agent_10x_checkpoint_sync: Mean +- std dev: 38.7 ms +- 0.7 ms ......................................... react_agent_100x: Mean +- std dev: 414 ms +- 17 ms ......................................... react_agent_100x_sync: Mean +- std dev: 336 ms +- 13 ms ......................................... react_agent_100x_checkpoint: Mean +- std dev: 971 ms +- 17 ms ......................................... react_agent_100x_checkpoint_sync: Mean +- std dev: 857 ms +- 15 ms ......................................... wide_state_25x300: Mean +- std dev: 19.8 ms +- 0.3 ms ......................................... wide_state_25x300_sync: Mean +- std dev: 12.0 ms +- 0.2 ms ......................................... wide_state_25x300_checkpoint: Mean +- std dev: 242 ms +- 7 ms ......................................... wide_state_25x300_checkpoint_sync: Mean +- std dev: 232 ms +- 7 ms ......................................... wide_state_15x600: Mean +- std dev: 23.0 ms +- 0.4 ms ......................................... wide_state_15x600_sync: Mean +- std dev: 13.8 ms +- 0.1 ms ......................................... wide_state_15x600_checkpoint: Mean +- std dev: 421 ms +- 12 ms ......................................... wide_state_15x600_checkpoint_sync: Mean +- std dev: 411 ms +- 12 ms ......................................... wide_state_9x1200: Mean +- std dev: 23.3 ms +- 0.2 ms ......................................... wide_state_9x1200_sync: Mean +- std dev: 14.0 ms +- 0.2 ms ......................................... wide_state_9x1200_checkpoint: Mean +- std dev: 273 ms +- 9 ms ......................................... wide_state_9x1200_checkpoint_sync: Mean +- std dev: 262 ms +- 8 ms
Comparison against main: libs/langgraph/langgraph/prebuilt/chat_agent_executor.py#L1
+-----------------------------------------+---------+-----------------------+ | Benchmark | main | changes | +=========================================+=========+=======================+ | react_agent_100x_checkpoint_sync | 883 ms | 857 ms: 1.03x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint | 981 ms | 971 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_sync | 29.4 ms | 29.4 ms: 1.00x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x | 37.9 ms | 38.1 ms: 1.00x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint | 74.2 ms | 74.7 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_sync | 13.7 ms | 13.8 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_checkpoint_sync | 408 ms | 411 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600 | 22.8 ms | 23.0 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300 | 19.6 ms | 19.8 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_sync | 11.9 ms | 12.0 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint_sync | 738 ms | 746 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_checkpoint | 270 ms | 273 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_checkpoint | 416 ms | 421 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_checkpoint | 50.7 ms | 51.3 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x | 543 ms | 550 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint_sync | 77.2 ms | 78.4 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint | 749 ms | 763 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_sync | 13.7 ms | 14.0 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200 | 22.8 ms | 23.3 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | Geometric mean | (ref) | 1.01x slower | +-----------------------------------------+---------+-----------------------+ Benchmark hidden because not significant (9): wide_state_25x300_checkpoint_sync, wide_state_25x300_checkpoint, wide_state_9x1200_checkpoint_sync, fanout_to_subgraph_10x, react_agent_100x_sync, fanout_to_subgraph_100x_sync, react_agent_10x_checkpoint_sync, fanout_to_subgraph_10x_sync, react_agent_100x