Add return_direct support #144
Triggered via pull request
September 20, 2024 17:28
Status
Success
Total duration
44m 43s
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/prebuilt/chat_agent_executor.py#L1
.........................................
fanout_to_subgraph_10x: Mean +- std dev: 59.3 ms +- 1.3 ms
.........................................
WARNING: the benchmark result may be unstable
* the standard deviation (6.38 ms) is 11% of the mean (56.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_sync: Mean +- std dev: 56.8 ms +- 6.4 ms
.........................................
fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 77.0 ms +- 1.2 ms
.........................................
fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 81.2 ms +- 0.6 ms
.........................................
fanout_to_subgraph_100x: Mean +- std dev: 548 ms +- 7 ms
.........................................
fanout_to_subgraph_100x_sync: Mean +- std dev: 503 ms +- 5 ms
.........................................
fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 754 ms +- 22 ms
.........................................
fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 785 ms +- 6 ms
.........................................
react_agent_10x: Mean +- std dev: 39.4 ms +- 0.8 ms
.........................................
react_agent_10x_sync: Mean +- std dev: 29.6 ms +- 0.2 ms
.........................................
react_agent_10x_checkpoint: Mean +- std dev: 53.1 ms +- 2.3 ms
.........................................
react_agent_10x_checkpoint_sync: Mean +- std dev: 42.9 ms +- 3.5 ms
.........................................
react_agent_100x: Mean +- std dev: 415 ms +- 8 ms
.........................................
react_agent_100x_sync: Mean +- std dev: 343 ms +- 12 ms
.........................................
react_agent_100x_checkpoint: Mean +- std dev: 921 ms +- 10 ms
.........................................
react_agent_100x_checkpoint_sync: Mean +- std dev: 820 ms +- 7 ms
.........................................
wide_state_25x300: Mean +- std dev: 20.5 ms +- 0.3 ms
.........................................
wide_state_25x300_sync: Mean +- std dev: 12.7 ms +- 0.1 ms
.........................................
wide_state_25x300_checkpoint: Mean +- std dev: 237 ms +- 7 ms
.........................................
wide_state_25x300_checkpoint_sync: Mean +- std dev: 228 ms +- 7 ms
.........................................
wide_state_15x600: Mean +- std dev: 23.7 ms +- 0.4 ms
.........................................
wide_state_15x600_sync: Mean +- std dev: 14.7 ms +- 0.2 ms
.........................................
wide_state_15x600_checkpoint: Mean +- std dev: 415 ms +- 12 ms
.........................................
wide_state_15x600_checkpoint_sync: Mean +- std dev: 407 ms +- 12 ms
.........................................
wide_state_9x1200: Mean +- std dev: 23.7 ms +- 0.4 ms
.........................................
wide_state_9x1200_sync: Mean +- std dev: 14.8 ms +- 0.2 ms
.........................................
wide_state_9x1200_checkpoint: Mean +- std dev: 270 ms +- 8 ms
.........................................
wide_state_9x1200_checkpoint_sync: Mean +- std dev: 258 ms +- 9 ms
|
Comparison against main:
libs/langgraph/langgraph/prebuilt/chat_agent_executor.py#L1
+-----------------------------------------+---------+-----------------------+
| Benchmark | main | changes |
+=========================================+=========+=======================+
| fanout_to_subgraph_100x_checkpoint | 806 ms | 754 ms: 1.07x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x | 566 ms | 548 ms: 1.03x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_checkpoint_sync | 82.1 ms | 81.2 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint | 931 ms | 921 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_checkpoint | 77.8 ms | 77.0 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200 | 23.9 ms | 23.7 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_checkpoint_sync | 791 ms | 785 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint_sync | 823 ms | 820 ms: 1.00x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_10x_sync | 29.7 ms | 29.6 ms: 1.00x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300_sync | 12.6 ms | 12.7 ms: 1.00x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200_sync | 14.7 ms | 14.8 ms: 1.00x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200_checkpoint | 267 ms | 270 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| Geometric mean | (ref) | 1.01x faster |
+-----------------------------------------+---------+-----------------------+
Benchmark hidden because not significant (16): fanout_to_subgraph_10x_sync, react_agent_10x_checkpoint_sync, wide_state_25x300_checkpoint, wide_state_15x600_checkpoint, wide_state_25x300_checkpoint_sync, react_agent_100x, wide_state_9x1200_checkpoint_sync, react_agent_10x, react_agent_100x_sync, wide_state_15x600_checkpoint_sync, fanout_to_subgraph_100x_sync, fanout_to_subgraph_10x, wide_state_25x300, wide_state_15x600, wide_state_15x600_sync, react_agent_10x_checkpoint
|