lib: Add two more tests for Send #722
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/types.py#L1
.........................................
fanout_to_subgraph_10x: Mean +- std dev: 57.9 ms +- 1.3 ms
.........................................
fanout_to_subgraph_10x_sync: Mean +- std dev: 49.2 ms +- 0.6 ms
.........................................
fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 83.6 ms +- 1.9 ms
.........................................
fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 91.2 ms +- 1.2 ms
.........................................
fanout_to_subgraph_100x: Mean +- std dev: 541 ms +- 19 ms
.........................................
fanout_to_subgraph_100x_sync: Mean +- std dev: 477 ms +- 4 ms
.........................................
fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 919 ms +- 49 ms
.........................................
fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 895 ms +- 20 ms
.........................................
react_agent_10x: Mean +- std dev: 30.1 ms +- 0.7 ms
.........................................
react_agent_10x_sync: Mean +- std dev: 22.2 ms +- 0.3 ms
.........................................
react_agent_10x_checkpoint: Mean +- std dev: 47.2 ms +- 0.9 ms
.........................................
react_agent_10x_checkpoint_sync: Mean +- std dev: 36.6 ms +- 0.8 ms
.........................................
react_agent_100x: Mean +- std dev: 336 ms +- 7 ms
.........................................
react_agent_100x_sync: Mean +- std dev: 269 ms +- 3 ms
.........................................
react_agent_100x_checkpoint: Mean +- std dev: 942 ms +- 15 ms
.........................................
react_agent_100x_checkpoint_sync: Mean +- std dev: 841 ms +- 13 ms
.........................................
wide_state_25x300: Mean +- std dev: 23.4 ms +- 0.4 ms
.........................................
wide_state_25x300_sync: Mean +- std dev: 14.8 ms +- 0.2 ms
.........................................
wide_state_25x300_checkpoint: Mean +- std dev: 280 ms +- 4 ms
.........................................
wide_state_25x300_checkpoint_sync: Mean +- std dev: 267 ms +- 4 ms
.........................................
wide_state_15x600: Mean +- std dev: 27.3 ms +- 0.5 ms
.........................................
wide_state_15x600_sync: Mean +- std dev: 17.2 ms +- 0.2 ms
.........................................
wide_state_15x600_checkpoint: Mean +- std dev: 482 ms +- 5 ms
.........................................
wide_state_15x600_checkpoint_sync: Mean +- std dev: 465 ms +- 8 ms
.........................................
wide_state_9x1200: Mean +- std dev: 27.4 ms +- 0.5 ms
.........................................
wide_state_9x1200_sync: Mean +- std dev: 17.2 ms +- 0.2 ms
.........................................
wide_state_9x1200_checkpoint: Mean +- std dev: 315 ms +- 4 ms
.........................................
wide_state_9x1200_checkpoint_sync: Mean +- std dev: 300 ms +- 6 ms
|
Comparison against main:
libs/langgraph/langgraph/types.py#L1
+-----------------------------------------+---------+-----------------------+
| Benchmark | main | changes |
+=========================================+=========+=======================+
| react_agent_10x | 32.8 ms | 30.1 ms: 1.09x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_10x_sync | 23.7 ms | 22.2 ms: 1.07x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_10x_checkpoint_sync | 38.6 ms | 36.6 ms: 1.06x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_10x_checkpoint | 49.8 ms | 47.2 ms: 1.05x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200_checkpoint_sync | 311 ms | 300 ms: 1.04x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint_sync | 868 ms | 841 ms: 1.03x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300_checkpoint_sync | 274 ms | 267 ms: 1.03x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint | 965 ms | 942 ms: 1.02x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200_checkpoint | 322 ms | 315 ms: 1.02x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600_checkpoint_sync | 474 ms | 465 ms: 1.02x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600_checkpoint | 491 ms | 482 ms: 1.02x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300_checkpoint | 284 ms | 280 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x | 334 ms | 336 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_checkpoint_sync | 88.7 ms | 91.2 ms: 1.03x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_checkpoint_sync | 871 ms | 895 ms: 1.03x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_checkpoint | 881 ms | 919 ms: 1.04x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_checkpoint | 78.9 ms | 83.6 ms: 1.06x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_sync | 438 ms | 477 ms: 1.09x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_sync | 44.8 ms | 49.2 ms: 1.10x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x | 48.7 ms | 57.9 ms: 1.19x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300 | 18.7 ms | 23.4 ms: 1.25x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600 | 21.6 ms | 27.3 ms: 1.26x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200 | 21.6 ms | 27.4 ms: 1.26x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300_sync | 11.2 ms | 14.8 ms: 1.33x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600_sync | 12.8 ms | 17.2 ms: 1.34x slower |
+---------------------------------------
|