Add stream_mode=custom #131
Triggered via pull request
September 19, 2024 23:46
Status
Success
Total duration
44m 14s
Artifacts
–
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/constants.py#L1
.........................................
fanout_to_subgraph_10x: Mean +- std dev: 59.0 ms +- 0.9 ms
.........................................
fanout_to_subgraph_10x_sync: Mean +- std dev: 55.8 ms +- 5.5 ms
.........................................
fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 76.8 ms +- 1.5 ms
.........................................
fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 80.6 ms +- 0.7 ms
.........................................
fanout_to_subgraph_100x: Mean +- std dev: 542 ms +- 8 ms
.........................................
fanout_to_subgraph_100x_sync: Mean +- std dev: 502 ms +- 6 ms
.........................................
fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 740 ms +- 26 ms
.........................................
fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 781 ms +- 6 ms
.........................................
react_agent_10x: Mean +- std dev: 38.8 ms +- 0.8 ms
.........................................
react_agent_10x_sync: Mean +- std dev: 29.4 ms +- 0.2 ms
.........................................
react_agent_10x_checkpoint: Mean +- std dev: 54.5 ms +- 3.1 ms
.........................................
react_agent_10x_checkpoint_sync: Mean +- std dev: 42.2 ms +- 2.9 ms
.........................................
react_agent_100x: Mean +- std dev: 411 ms +- 8 ms
.........................................
react_agent_100x_sync: Mean +- std dev: 340 ms +- 12 ms
.........................................
react_agent_100x_checkpoint: Mean +- std dev: 910 ms +- 17 ms
.........................................
react_agent_100x_checkpoint_sync: Mean +- std dev: 809 ms +- 19 ms
.........................................
wide_state_25x300: Mean +- std dev: 20.4 ms +- 0.3 ms
.........................................
wide_state_25x300_sync: Mean +- std dev: 12.6 ms +- 0.1 ms
.........................................
wide_state_25x300_checkpoint: Mean +- std dev: 235 ms +- 7 ms
.........................................
wide_state_25x300_checkpoint_sync: Mean +- std dev: 226 ms +- 7 ms
.........................................
wide_state_15x600: Mean +- std dev: 23.6 ms +- 0.4 ms
.........................................
wide_state_15x600_sync: Mean +- std dev: 14.6 ms +- 0.1 ms
.........................................
wide_state_15x600_checkpoint: Mean +- std dev: 410 ms +- 9 ms
.........................................
wide_state_15x600_checkpoint_sync: Mean +- std dev: 405 ms +- 12 ms
.........................................
wide_state_9x1200: Mean +- std dev: 23.6 ms +- 0.4 ms
.........................................
wide_state_9x1200_sync: Mean +- std dev: 14.6 ms +- 0.2 ms
.........................................
wide_state_9x1200_checkpoint: Mean +- std dev: 266 ms +- 8 ms
.........................................
wide_state_9x1200_checkpoint_sync: Mean +- std dev: 255 ms +- 7 ms
|
Comparison against main:
libs/langgraph/langgraph/constants.py#L1
+-----------------------------------+---------+-----------------------+
| Benchmark | main | changes |
+===================================+=========+=======================+
| react_agent_100x | 420 ms | 411 ms: 1.02x faster |
+-----------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint_sync | 825 ms | 809 ms: 1.02x faster |
+-----------------------------------+---------+-----------------------+
| wide_state_25x300_checkpoint_sync | 228 ms | 226 ms: 1.01x faster |
+-----------------------------------+---------+-----------------------+
| react_agent_10x_sync | 29.6 ms | 29.4 ms: 1.01x faster |
+-----------------------------------+---------+-----------------------+
| wide_state_15x600_checkpoint | 414 ms | 410 ms: 1.01x faster |
+-----------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint | 915 ms | 910 ms: 1.01x faster |
+-----------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x | 544 ms | 542 ms: 1.00x faster |
+-----------------------------------+---------+-----------------------+
| wide_state_25x300 | 20.3 ms | 20.4 ms: 1.00x slower |
+-----------------------------------+---------+-----------------------+
| wide_state_15x600 | 23.4 ms | 23.6 ms: 1.01x slower |
+-----------------------------------+---------+-----------------------+
| wide_state_9x1200 | 23.4 ms | 23.6 ms: 1.01x slower |
+-----------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x | 58.3 ms | 59.0 ms: 1.01x slower |
+-----------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_checkpoint | 75.5 ms | 76.8 ms: 1.02x slower |
+-----------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_sync | 492 ms | 502 ms: 1.02x slower |
+-----------------------------------+---------+-----------------------+
| react_agent_10x_checkpoint | 52.7 ms | 54.5 ms: 1.03x slower |
+-----------------------------------+---------+-----------------------+
| Geometric mean | (ref) | 1.00x slower |
+-----------------------------------+---------+-----------------------+
Benchmark hidden because not significant (14): fanout_to_subgraph_100x_checkpoint, react_agent_10x, react_agent_100x_sync, wide_state_15x600_sync, fanout_to_subgraph_100x_checkpoint_sync, fanout_to_subgraph_10x_sync, react_agent_10x_checkpoint_sync, wide_state_25x300_checkpoint, fanout_to_subgraph_10x_checkpoint_sync, wide_state_9x1200_sync, wide_state_25x300_sync, wide_state_9x1200_checkpoint_sync, wide_state_15x600_checkpoint_sync, wide_state_9x1200_checkpoint
|