lib: Add two more tests for Send #724
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: 58.3 ms +- 1.5 ms
.........................................
fanout_to_subgraph_10x_sync: Mean +- std dev: 49.4 ms +- 1.0 ms
.........................................
fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 84.7 ms +- 2.3 ms
.........................................
fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 94.2 ms +- 2.2 ms
.........................................
fanout_to_subgraph_100x: Mean +- std dev: 585 ms +- 25 ms
.........................................
fanout_to_subgraph_100x_sync: Mean +- std dev: 484 ms +- 7 ms
.........................................
fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 987 ms +- 47 ms
.........................................
fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 926 ms +- 25 ms
.........................................
react_agent_10x: Mean +- std dev: 30.9 ms +- 0.8 ms
.........................................
react_agent_10x_sync: Mean +- std dev: 22.7 ms +- 0.4 ms
.........................................
react_agent_10x_checkpoint: Mean +- std dev: 47.3 ms +- 1.1 ms
.........................................
react_agent_10x_checkpoint_sync: Mean +- std dev: 37.6 ms +- 1.3 ms
.........................................
react_agent_100x: Mean +- std dev: 355 ms +- 12 ms
.........................................
react_agent_100x_sync: Mean +- std dev: 280 ms +- 8 ms
.........................................
react_agent_100x_checkpoint: Mean +- std dev: 1.04 sec +- 0.03 sec
.........................................
react_agent_100x_checkpoint_sync: Mean +- std dev: 900 ms +- 26 ms
.........................................
wide_state_25x300: Mean +- std dev: 23.4 ms +- 0.5 ms
.........................................
wide_state_25x300_sync: Mean +- std dev: 15.1 ms +- 0.3 ms
.........................................
wide_state_25x300_checkpoint: Mean +- std dev: 287 ms +- 7 ms
.........................................
wide_state_25x300_checkpoint_sync: Mean +- std dev: 272 ms +- 6 ms
.........................................
wide_state_15x600: Mean +- std dev: 27.5 ms +- 0.5 ms
.........................................
wide_state_15x600_sync: Mean +- std dev: 17.6 ms +- 0.3 ms
.........................................
wide_state_15x600_checkpoint: Mean +- std dev: 489 ms +- 8 ms
.........................................
wide_state_15x600_checkpoint_sync: Mean +- std dev: 472 ms +- 8 ms
.........................................
wide_state_9x1200: Mean +- std dev: 27.2 ms +- 0.6 ms
.........................................
wide_state_9x1200_sync: Mean +- std dev: 17.3 ms +- 0.4 ms
.........................................
wide_state_9x1200_checkpoint: Mean +- std dev: 319 ms +- 5 ms
.........................................
wide_state_9x1200_checkpoint_sync: Mean +- std dev: 304 ms +- 6 ms
|
Comparison against main:
libs/langgraph/langgraph/types.py#L1
+-----------------------------------------+---------+------------------------+
| Benchmark | main | changes |
+=========================================+=========+========================+
| react_agent_10x | 32.8 ms | 30.9 ms: 1.06x faster |
+-----------------------------------------+---------+------------------------+
| react_agent_10x_checkpoint | 49.8 ms | 47.3 ms: 1.05x faster |
+-----------------------------------------+---------+------------------------+
| react_agent_10x_sync | 23.7 ms | 22.7 ms: 1.05x faster |
+-----------------------------------------+---------+------------------------+
| react_agent_10x_checkpoint_sync | 38.6 ms | 37.6 ms: 1.03x faster |
+-----------------------------------------+---------+------------------------+
| wide_state_9x1200_checkpoint_sync | 311 ms | 304 ms: 1.02x faster |
+-----------------------------------------+---------+------------------------+
| wide_state_25x300_checkpoint | 284 ms | 287 ms: 1.01x slower |
+-----------------------------------------+---------+------------------------+
| react_agent_100x_checkpoint_sync | 868 ms | 900 ms: 1.04x slower |
+-----------------------------------------+---------+------------------------+
| react_agent_100x_sync | 268 ms | 280 ms: 1.05x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_10x_checkpoint_sync | 88.7 ms | 94.2 ms: 1.06x slower |
+-----------------------------------------+---------+------------------------+
| react_agent_100x | 334 ms | 355 ms: 1.06x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_100x_checkpoint_sync | 871 ms | 926 ms: 1.06x slower |
+-----------------------------------------+---------+------------------------+
| react_agent_100x_checkpoint | 965 ms | 1.04 sec: 1.07x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_10x_checkpoint | 78.9 ms | 84.7 ms: 1.07x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_100x | 540 ms | 585 ms: 1.08x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_10x_sync | 44.8 ms | 49.4 ms: 1.10x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_100x_sync | 438 ms | 484 ms: 1.10x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_100x_checkpoint | 881 ms | 987 ms: 1.12x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_10x | 48.7 ms | 58.3 ms: 1.20x slower |
+-----------------------------------------+---------+------------------------+
| wide_state_25x300 | 18.7 ms | 23.4 ms: 1.25x slower |
+-----------------------------------------+---------+------------------------+
| wide_state_9x1200 | 21.6 ms | 27.2 ms: 1.26x slower |
+-----------------------------------------+---------+------------------------+
| wide_state_15x600 | 21.6 ms | 27.5 ms: 1.27x slower |
+-----------------------------------------+---------+------------------------+
| wide_state_25x300_sync | 11.2 ms | 15.1 ms: 1.35x slower |
+-----------------------------------------+---------+------------------------+
| wide_state_9x1200_sync | 12.8 ms | 17.3 ms: 1.36x slower |
+-----------------------------------------+---------+------------------------+
| wide_state_15x600_sync | 12.8 ms | 17.6 ms: 1.37x slower |
+-----------------------------------------+---------+------------------------+
| Geometric mean | (ref) | 1.09x slower
|