langgraph[patch]: format messages in state #616
Annotations
1 warning and 2 notices
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/
|
Annotation:
libs/langgraph/langgraph/graph/message.py#L1
.........................................
WARNING: the benchmark result may be unstable
* the standard deviation (6.27 ms) is 11% of the mean (54.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: Mean +- std dev: 54.8 ms +- 6.3 ms
.........................................
fanout_to_subgraph_10x_sync: Mean +- std dev: 46.5 ms +- 3.1 ms
.........................................
fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 76.8 ms +- 1.6 ms
.........................................
fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 84.8 ms +- 0.7 ms
.........................................
fanout_to_subgraph_100x: Mean +- std dev: 469 ms +- 9 ms
.........................................
fanout_to_subgraph_100x_sync: Mean +- std dev: 429 ms +- 5 ms
.........................................
fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 799 ms +- 46 ms
.........................................
fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 833 ms +- 16 ms
.........................................
react_agent_10x: Mean +- std dev: 29.0 ms +- 0.6 ms
.........................................
react_agent_10x_sync: Mean +- std dev: 22.4 ms +- 1.6 ms
.........................................
react_agent_10x_checkpoint: Mean +- std dev: 47.6 ms +- 3.2 ms
.........................................
react_agent_10x_checkpoint_sync: Mean +- std dev: 37.5 ms +- 3.2 ms
.........................................
react_agent_100x: Mean +- std dev: 328 ms +- 14 ms
.........................................
react_agent_100x_sync: Mean +- std dev: 262 ms +- 12 ms
.........................................
react_agent_100x_checkpoint: Mean +- std dev: 919 ms +- 7 ms
.........................................
react_agent_100x_checkpoint_sync: Mean +- std dev: 821 ms +- 6 ms
.........................................
wide_state_25x300: Mean +- std dev: 18.3 ms +- 0.3 ms
.........................................
wide_state_25x300_sync: Mean +- std dev: 10.8 ms +- 0.1 ms
.........................................
wide_state_25x300_checkpoint: Mean +- std dev: 271 ms +- 3 ms
.........................................
wide_state_25x300_checkpoint_sync: Mean +- std dev: 261 ms +- 4 ms
.........................................
wide_state_15x600: Mean +- std dev: 21.2 ms +- 0.4 ms
.........................................
wide_state_15x600_sync: Mean +- std dev: 12.5 ms +- 0.1 ms
.........................................
wide_state_15x600_checkpoint: Mean +- std dev: 470 ms +- 7 ms
.........................................
wide_state_15x600_checkpoint_sync: Mean +- std dev: 467 ms +- 15 ms
.........................................
wide_state_9x1200: Mean +- std dev: 21.2 ms +- 0.4 ms
.........................................
wide_state_9x1200_sync: Mean +- std dev: 12.5 ms +- 0.1 ms
.........................................
wide_state_9x1200_checkpoint: Mean +- std dev: 305 ms +- 4 ms
.........................................
wide_state_9x1200_checkpoint_sync: Mean +- std dev: 301 ms +- 13 ms
|
Annotation:
libs/langgraph/langgraph/graph/message.py#L1
+-----------------------------------------+---------+-----------------------+
| Benchmark | main | changes |
+=========================================+=========+=======================+
| fanout_to_subgraph_100x | 491 ms | 469 ms: 1.05x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_checkpoint | 835 ms | 799 ms: 1.04x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x | 335 ms | 328 ms: 1.02x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint_sync | 836 ms | 821 ms: 1.02x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_checkpoint_sync | 847 ms | 833 ms: 1.02x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_checkpoint_sync | 86.1 ms | 84.8 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300 | 18.5 ms | 18.3 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300_sync | 10.9 ms | 10.8 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600_checkpoint | 474 ms | 470 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200_checkpoint | 307 ms | 305 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600_sync | 12.6 ms | 12.5 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300_checkpoint | 273 ms | 271 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600 | 21.4 ms | 21.2 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200 | 21.3 ms | 21.2 ms: 1.00x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200_sync | 12.6 ms | 12.5 ms: 1.00x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x | 48.5 ms | 54.8 ms: 1.13x slower |
+-----------------------------------------+---------+-----------------------+
| Geometric mean | (ref) | 1.01x faster |
+-----------------------------------------+---------+-----------------------+
Benchmark hidden because not significant (12): react_agent_10x_checkpoint_sync, react_agent_10x_checkpoint, react_agent_100x_sync, wide_state_9x1200_checkpoint_sync, react_agent_10x_sync, fanout_to_subgraph_10x_checkpoint, wide_state_15x600_checkpoint_sync, fanout_to_subgraph_100x_sync, wide_state_25x300_checkpoint_sync, react_agent_10x, fanout_to_subgraph_10x_sync, react_agent_100x_checkpoint
|
Loading