lib: Add support for invoke(Command(goto=<str>)) #1178
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/graph/state.py#L1
.........................................
fanout_to_subgraph_10x: Mean +- std dev: 64.4 ms +- 1.9 ms
.........................................
fanout_to_subgraph_10x_sync: Mean +- std dev: 54.8 ms +- 1.1 ms
.........................................
fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 98.6 ms +- 9.5 ms
.........................................
fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 98.5 ms +- 1.0 ms
.........................................
fanout_to_subgraph_100x: Mean +- std dev: 695 ms +- 19 ms
.........................................
fanout_to_subgraph_100x_sync: Mean +- std dev: 533 ms +- 10 ms
.........................................
fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 976 ms +- 46 ms
.........................................
fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 967 ms +- 17 ms
.........................................
react_agent_10x: Mean +- std dev: 31.5 ms +- 0.8 ms
.........................................
react_agent_10x_sync: Mean +- std dev: 22.9 ms +- 0.2 ms
.........................................
react_agent_10x_checkpoint: Mean +- std dev: 47.4 ms +- 0.8 ms
.........................................
react_agent_10x_checkpoint_sync: Mean +- std dev: 36.8 ms +- 0.4 ms
.........................................
react_agent_100x: Mean +- std dev: 347 ms +- 6 ms
.........................................
react_agent_100x_sync: Mean +- std dev: 275 ms +- 3 ms
.........................................
react_agent_100x_checkpoint: Mean +- std dev: 937 ms +- 9 ms
.........................................
react_agent_100x_checkpoint_sync: Mean +- std dev: 835 ms +- 6 ms
.........................................
wide_state_25x300: Mean +- std dev: 24.0 ms +- 0.4 ms
.........................................
wide_state_25x300_sync: Mean +- std dev: 15.2 ms +- 0.1 ms
.........................................
wide_state_25x300_checkpoint: Mean +- std dev: 289 ms +- 14 ms
.........................................
wide_state_25x300_checkpoint_sync: Mean +- std dev: 276 ms +- 13 ms
.........................................
wide_state_15x600: Mean +- std dev: 28.0 ms +- 0.5 ms
.........................................
wide_state_15x600_sync: Mean +- std dev: 17.8 ms +- 0.1 ms
.........................................
wide_state_15x600_checkpoint: Mean +- std dev: 492 ms +- 14 ms
.........................................
wide_state_15x600_checkpoint_sync: Mean +- std dev: 475 ms +- 13 ms
.........................................
wide_state_9x1200: Mean +- std dev: 27.9 ms +- 0.4 ms
.........................................
wide_state_9x1200_sync: Mean +- std dev: 17.7 ms +- 0.1 ms
.........................................
wide_state_9x1200_checkpoint: Mean +- std dev: 323 ms +- 14 ms
.........................................
wide_state_9x1200_checkpoint_sync: Mean +- std dev: 308 ms +- 13 ms
|
Comparison against main:
libs/langgraph/langgraph/graph/state.py#L1
+-----------------------------------------+---------+-----------------------+
| Benchmark | main | changes |
+=========================================+=========+=======================+
| wide_state_9x1200_checkpoint_sync | 312 ms | 308 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600_checkpoint_sync | 481 ms | 475 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600_checkpoint | 495 ms | 492 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint_sync | 833 ms | 835 ms: 1.00x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_10x_checkpoint | 47.1 ms | 47.4 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200 | 27.7 ms | 27.9 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300 | 23.8 ms | 24.0 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_checkpoint_sync | 956 ms | 967 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_10x | 31.1 ms | 31.5 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600 | 27.6 ms | 28.0 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300_sync | 15.0 ms | 15.2 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200_sync | 17.4 ms | 17.7 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600_sync | 17.4 ms | 17.8 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_checkpoint_sync | 95.8 ms | 98.5 ms: 1.03x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_sync | 516 ms | 533 ms: 1.03x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x | 62.3 ms | 64.4 ms: 1.03x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_sync | 52.9 ms | 54.8 ms: 1.04x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_checkpoint | 939 ms | 976 ms: 1.04x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_checkpoint | 93.6 ms | 98.6 ms: 1.05x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x | 619 ms | 695 ms: 1.12x slower |
+-----------------------------------------+---------+-----------------------+
| Geometric mean | (ref) | 1.01x slower |
+-----------------------------------------+---------+-----------------------+
Benchmark hidden because not significant (8): wide_state_25x300_checkpoint_sync, wide_state_25x300_checkpoint, wide_state_9x1200_checkpoint, react_agent_100x_sync, react_agent_10x_sync, react_agent_10x_checkpoint_sync, react_agent_100x_checkpoint, react_agent_100x
|