WIP: Handle commands for subgraphs #848
Triggered via pull request
November 15, 2024 22:01
Status
Success
Total duration
47m 17s
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/tests/test_pregel.py#L1
.........................................
fanout_to_subgraph_10x: Mean +- std dev: 61.5 ms +- 1.6 ms
.........................................
fanout_to_subgraph_10x_sync: Mean +- std dev: 51.6 ms +- 0.9 ms
.........................................
WARNING: the benchmark result may be unstable
* the standard deviation (10.3 ms) is 11% of the mean (94.8 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_checkpoint: Mean +- std dev: 94.8 ms +- 10.3 ms
.........................................
fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 95.0 ms +- 2.0 ms
.........................................
fanout_to_subgraph_100x: Mean +- std dev: 637 ms +- 30 ms
.........................................
fanout_to_subgraph_100x_sync: Mean +- std dev: 501 ms +- 6 ms
.........................................
fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 922 ms +- 38 ms
.........................................
fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 917 ms +- 18 ms
.........................................
react_agent_10x: Mean +- std dev: 30.6 ms +- 0.6 ms
.........................................
react_agent_10x_sync: Mean +- std dev: 22.5 ms +- 0.4 ms
.........................................
react_agent_10x_checkpoint: Mean +- std dev: 46.4 ms +- 0.8 ms
.........................................
react_agent_10x_checkpoint_sync: Mean +- std dev: 36.5 ms +- 0.8 ms
.........................................
react_agent_100x: Mean +- std dev: 340 ms +- 7 ms
.........................................
react_agent_100x_sync: Mean +- std dev: 271 ms +- 4 ms
.........................................
react_agent_100x_checkpoint: Mean +- std dev: 929 ms +- 13 ms
.........................................
react_agent_100x_checkpoint_sync: Mean +- std dev: 850 ms +- 20 ms
.........................................
wide_state_25x300: Mean +- std dev: 23.9 ms +- 0.4 ms
.........................................
wide_state_25x300_sync: Mean +- std dev: 15.3 ms +- 0.1 ms
.........................................
wide_state_25x300_checkpoint: Mean +- std dev: 277 ms +- 3 ms
.........................................
wide_state_25x300_checkpoint_sync: Mean +- std dev: 265 ms +- 5 ms
.........................................
wide_state_15x600: Mean +- std dev: 28.1 ms +- 0.5 ms
.........................................
wide_state_15x600_sync: Mean +- std dev: 17.7 ms +- 0.4 ms
.........................................
wide_state_15x600_checkpoint: Mean +- std dev: 479 ms +- 8 ms
.........................................
wide_state_15x600_checkpoint_sync: Mean +- std dev: 461 ms +- 6 ms
.........................................
wide_state_9x1200: Mean +- std dev: 27.9 ms +- 0.5 ms
.........................................
wide_state_9x1200_sync: Mean +- std dev: 17.7 ms +- 0.1 ms
.........................................
wide_state_9x1200_checkpoint: Mean +- std dev: 311 ms +- 4 ms
.........................................
wide_state_9x1200_checkpoint_sync: Mean +- std dev: 296 ms +- 6 ms
|
Comparison against main:
libs/langgraph/tests/test_pregel.py#L1
+----------------------------------------+---------+-----------------------+
| Benchmark | main | changes |
+========================================+=========+=======================+
| wide_state_9x1200 | 28.1 ms | 27.9 ms: 1.01x faster |
+----------------------------------------+---------+-----------------------+
| react_agent_10x | 30.8 ms | 30.6 ms: 1.01x faster |
+----------------------------------------+---------+-----------------------+
| wide_state_9x1200_sync | 17.8 ms | 17.7 ms: 1.01x faster |
+----------------------------------------+---------+-----------------------+
| wide_state_25x300_sync | 15.4 ms | 15.3 ms: 1.01x faster |
+----------------------------------------+---------+-----------------------+
| react_agent_100x | 342 ms | 340 ms: 1.00x faster |
+----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_sync | 51.3 ms | 51.6 ms: 1.01x slower |
+----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x | 60.9 ms | 61.5 ms: 1.01x slower |
+----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_checkpoint_sync | 93.2 ms | 95.0 ms: 1.02x slower |
+----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint_sync | 833 ms | 850 ms: 1.02x slower |
+----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_checkpoint | 91.6 ms | 94.8 ms: 1.04x slower |
+----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x | 600 ms | 637 ms: 1.06x slower |
+----------------------------------------+---------+-----------------------+
| Geometric mean | (ref) | 1.00x slower |
+----------------------------------------+---------+-----------------------+
Benchmark hidden because not significant (17): fanout_to_subgraph_100x_checkpoint, react_agent_10x_checkpoint, wide_state_9x1200_checkpoint_sync, wide_state_25x300_checkpoint, react_agent_100x_sync, react_agent_10x_sync, wide_state_25x300, react_agent_100x_checkpoint, wide_state_15x600_checkpoint_sync, fanout_to_subgraph_100x_checkpoint_sync, wide_state_9x1200_checkpoint, wide_state_25x300_checkpoint_sync, wide_state_15x600, wide_state_15x600_sync, fanout_to_subgraph_100x_sync, react_agent_10x_checkpoint_sync, wide_state_15x600_checkpoint
|