lib: Add support for invoke(Command(goto=<str>)) #1187
Triggered via pull request
December 10, 2024 02:23
Status
Success
Total duration
48m 57s
Artifacts
–
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: 63.9 ms +- 1.8 ms
.........................................
fanout_to_subgraph_10x_sync: Mean +- std dev: 54.0 ms +- 0.8 ms
.........................................
fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 96.2 ms +- 7.9 ms
.........................................
fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 97.6 ms +- 2.4 ms
.........................................
fanout_to_subgraph_100x: Mean +- std dev: 654 ms +- 22 ms
.........................................
fanout_to_subgraph_100x_sync: Mean +- std dev: 531 ms +- 12 ms
.........................................
fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 991 ms +- 45 ms
.........................................
fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 976 ms +- 23 ms
.........................................
react_agent_10x: Mean +- std dev: 31.7 ms +- 0.6 ms
.........................................
react_agent_10x_sync: Mean +- std dev: 23.4 ms +- 0.4 ms
.........................................
react_agent_10x_checkpoint: Mean +- std dev: 49.0 ms +- 1.0 ms
.........................................
react_agent_10x_checkpoint_sync: Mean +- std dev: 38.0 ms +- 0.8 ms
.........................................
react_agent_100x: Mean +- std dev: 348 ms +- 6 ms
.........................................
react_agent_100x_sync: Mean +- std dev: 278 ms +- 4 ms
.........................................
react_agent_100x_checkpoint: Mean +- std dev: 1.01 sec +- 0.01 sec
.........................................
react_agent_100x_checkpoint_sync: Mean +- std dev: 898 ms +- 15 ms
.........................................
wide_state_25x300: Mean +- std dev: 24.2 ms +- 0.5 ms
.........................................
wide_state_25x300_sync: Mean +- std dev: 15.5 ms +- 0.3 ms
.........................................
wide_state_25x300_checkpoint: Mean +- std dev: 290 ms +- 16 ms
.........................................
wide_state_25x300_checkpoint_sync: Mean +- std dev: 275 ms +- 13 ms
.........................................
wide_state_15x600: Mean +- std dev: 28.0 ms +- 0.5 ms
.........................................
wide_state_15x600_sync: Mean +- std dev: 17.7 ms +- 0.2 ms
.........................................
wide_state_15x600_checkpoint: Mean +- std dev: 489 ms +- 15 ms
.........................................
wide_state_15x600_checkpoint_sync: Mean +- std dev: 475 ms +- 15 ms
.........................................
wide_state_9x1200: Mean +- std dev: 27.8 ms +- 0.5 ms
.........................................
wide_state_9x1200_sync: Mean +- std dev: 17.7 ms +- 0.3 ms
.........................................
wide_state_9x1200_checkpoint: Mean +- std dev: 324 ms +- 16 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_25x300_checkpoint_sync | 279 ms | 275 ms: 1.01x faster |
+-----------------------------------------+---------+------------------------+
| wide_state_15x600_checkpoint_sync | 481 ms | 475 ms: 1.01x faster |
+-----------------------------------------+---------+------------------------+
| wide_state_15x600_checkpoint | 495 ms | 489 ms: 1.01x faster |
+-----------------------------------------+---------+------------------------+
| wide_state_9x1200 | 27.7 ms | 27.8 ms: 1.01x slower |
+-----------------------------------------+---------+------------------------+
| react_agent_100x | 346 ms | 348 ms: 1.01x slower |
+-----------------------------------------+---------+------------------------+
| react_agent_100x_sync | 275 ms | 278 ms: 1.01x slower |
+-----------------------------------------+---------+------------------------+
| wide_state_15x600 | 27.6 ms | 28.0 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.7 ms: 1.02x slower |
+-----------------------------------------+---------+------------------------+
| wide_state_25x300 | 23.8 ms | 24.2 ms: 1.02x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_10x_checkpoint_sync | 95.8 ms | 97.6 ms: 1.02x slower |
+-----------------------------------------+---------+------------------------+
| react_agent_10x | 31.1 ms | 31.7 ms: 1.02x slower |
+-----------------------------------------+---------+------------------------+
| react_agent_10x_sync | 22.9 ms | 23.4 ms: 1.02x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_100x_checkpoint_sync | 956 ms | 976 ms: 1.02x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_10x_sync | 52.9 ms | 54.0 ms: 1.02x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_10x | 62.3 ms | 63.9 ms: 1.02x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_10x_checkpoint | 93.6 ms | 96.2 ms: 1.03x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_100x_sync | 516 ms | 531 ms: 1.03x slower |
+-----------------------------------------+---------+------------------------+
| react_agent_10x_checkpoint_sync | 36.8 ms | 38.0 ms: 1.03x slower |
+-----------------------------------------+---------+------------------------+
| wide_state_25x300_sync | 15.0 ms | 15.5 ms: 1.04x slower |
+-----------------------------------------+---------+------------------------+
| react_agent_10x_checkpoint | 47.1 ms | 49.0 ms: 1.04x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_100x_checkpoint | 939 ms | 991 ms: 1.06x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_100x | 619 ms | 654 ms: 1.06x slower |
+-----------------------------------------+---------+------------------------+
| react_agent_100x_checkpoint_sync | 833 ms | 898 ms: 1.08x
|