Add stream_mode=custom #135
Triggered via pull request
September 20, 2024 00:09
Status
Success
Total duration
46m 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.3 ms +- 0.9 ms
.........................................
WARNING: the benchmark result may be unstable
* the standard deviation (6.77 ms) is 12% of the mean (56.7 ms)
Try to rerun the benchmark with more runs, values and/or loops.
Run 'python -m pyperf system tune' command to reduce the system jitter.
Use pyperf stats, pyperf dump and pyperf hist to analyze results.
Use --quiet option to hide these warnings.
fanout_to_subgraph_10x_sync: Mean +- std dev: 56.7 ms +- 6.8 ms
.........................................
fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 76.9 ms +- 0.8 ms
.........................................
fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 82.2 ms +- 1.2 ms
.........................................
fanout_to_subgraph_100x: Mean +- std dev: 581 ms +- 20 ms
.........................................
fanout_to_subgraph_100x_sync: Mean +- std dev: 522 ms +- 11 ms
.........................................
fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 865 ms +- 45 ms
.........................................
fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 797 ms +- 7 ms
.........................................
react_agent_10x: Mean +- std dev: 39.8 ms +- 0.8 ms
.........................................
react_agent_10x_sync: Mean +- std dev: 29.7 ms +- 0.3 ms
.........................................
react_agent_10x_checkpoint: Mean +- std dev: 52.9 ms +- 1.3 ms
.........................................
react_agent_10x_checkpoint_sync: Mean +- std dev: 43.0 ms +- 3.3 ms
.........................................
react_agent_100x: Mean +- std dev: 413 ms +- 7 ms
.........................................
react_agent_100x_sync: Mean +- std dev: 341 ms +- 13 ms
.........................................
react_agent_100x_checkpoint: Mean +- std dev: 948 ms +- 37 ms
.........................................
react_agent_100x_checkpoint_sync: Mean +- std dev: 901 ms +- 39 ms
.........................................
wide_state_25x300: Mean +- std dev: 20.5 ms +- 0.3 ms
.........................................
wide_state_25x300_sync: Mean +- std dev: 12.7 ms +- 0.2 ms
.........................................
wide_state_25x300_checkpoint: Mean +- std dev: 239 ms +- 7 ms
.........................................
wide_state_25x300_checkpoint_sync: Mean +- std dev: 228 ms +- 7 ms
.........................................
wide_state_15x600: Mean +- std dev: 23.6 ms +- 0.3 ms
.........................................
wide_state_15x600_sync: Mean +- std dev: 14.6 ms +- 0.1 ms
.........................................
wide_state_15x600_checkpoint: Mean +- std dev: 422 ms +- 19 ms
.........................................
wide_state_15x600_checkpoint_sync: Mean +- std dev: 408 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.1 ms
.........................................
wide_state_9x1200_checkpoint: Mean +- std dev: 270 ms +- 9 ms
.........................................
wide_state_9x1200_checkpoint_sync: Mean +- std dev: 258 ms +- 9 ms
|
Comparison against main:
libs/langgraph/langgraph/constants.py#L1
+-----------------------------------------+---------+-----------------------+
| Benchmark | main | changes |
+=========================================+=========+=======================+
| react_agent_100x | 420 ms | 413 ms: 1.02x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200_sync | 14.6 ms | 14.6 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300_sync | 12.6 ms | 12.7 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200 | 23.4 ms | 23.6 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600 | 23.4 ms | 23.6 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300 | 20.3 ms | 20.5 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200_checkpoint_sync | 255 ms | 258 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600_checkpoint_sync | 403 ms | 408 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300_checkpoint | 235 ms | 239 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x | 58.3 ms | 59.3 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200_checkpoint | 265 ms | 270 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_checkpoint | 75.5 ms | 76.9 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_checkpoint_sync | 782 ms | 797 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600_checkpoint | 414 ms | 422 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_checkpoint_sync | 80.6 ms | 82.2 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_10x | 38.9 ms | 39.8 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint | 915 ms | 948 ms: 1.04x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_sync | 492 ms | 522 ms: 1.06x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x | 544 ms | 581 ms: 1.07x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint_sync | 825 ms | 901 ms: 1.09x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_checkpoint | 743 ms | 865 ms: 1.16x slower |
+-----------------------------------------+---------+-----------------------+
| Geometric mean | (ref) | 1.02x slower |
+-----------------------------------------+---------+-----------------------+
Benchmark hidden because not significant (7): wide_state_25x300_checkpoint_sync, wide_state_15x600_sync, react_agent_10x_sync, react_agent_100x_sync, react_agent_10x_checkpoint, fanout_to_subgraph_10x_sync, react_agent_10x_checkpoint_sync
|