fix: get correct reducer when type has multiple metadata. #1064
Annotations
1 warning and 2 notices
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Annotation:
libs/langgraph/langgraph/graph/state.py#L1
.........................................
fanout_to_subgraph_10x: Mean +- std dev: 62.1 ms +- 1.6 ms
.........................................
fanout_to_subgraph_10x_sync: Mean +- std dev: 52.8 ms +- 0.7 ms
.........................................
WARNING: the benchmark result may be unstable
* the standard deviation (11.7 ms) is 12% of the mean (96.9 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: 96.9 ms +- 11.7 ms
.........................................
fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 96.9 ms +- 1.5 ms
.........................................
fanout_to_subgraph_100x: Mean +- std dev: 687 ms +- 39 ms
.........................................
fanout_to_subgraph_100x_sync: Mean +- std dev: 515 ms +- 6 ms
.........................................
fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 1.05 sec +- 0.04 sec
.........................................
fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 958 ms +- 23 ms
.........................................
react_agent_10x: Mean +- std dev: 31.5 ms +- 0.7 ms
.........................................
react_agent_10x_sync: Mean +- std dev: 22.9 ms +- 0.4 ms
.........................................
react_agent_10x_checkpoint: Mean +- std dev: 48.1 ms +- 0.9 ms
.........................................
react_agent_10x_checkpoint_sync: Mean +- std dev: 37.5 ms +- 0.6 ms
.........................................
react_agent_100x: Mean +- std dev: 348 ms +- 7 ms
.........................................
react_agent_100x_sync: Mean +- std dev: 273 ms +- 3 ms
.........................................
react_agent_100x_checkpoint: Mean +- std dev: 982 ms +- 17 ms
.........................................
react_agent_100x_checkpoint_sync: Mean +- std dev: 895 ms +- 19 ms
.........................................
wide_state_25x300: Mean +- std dev: 24.9 ms +- 0.7 ms
.........................................
wide_state_25x300_sync: Mean +- std dev: 16.0 ms +- 0.5 ms
.........................................
wide_state_25x300_checkpoint: Mean +- std dev: 288 ms +- 5 ms
.........................................
wide_state_25x300_checkpoint_sync: Mean +- std dev: 273 ms +- 5 ms
.........................................
wide_state_15x600: Mean +- std dev: 29.0 ms +- 0.7 ms
.........................................
wide_state_15x600_sync: Mean +- std dev: 18.6 ms +- 0.6 ms
.........................................
wide_state_15x600_checkpoint: Mean +- std dev: 491 ms +- 8 ms
.........................................
wide_state_15x600_checkpoint_sync: Mean +- std dev: 472 ms +- 7 ms
.........................................
wide_state_9x1200: Mean +- std dev: 28.4 ms +- 0.6 ms
.........................................
wide_state_9x1200_sync: Mean +- std dev: 18.2 ms +- 0.3 ms
.........................................
wide_state_9x1200_checkpoint: Mean +- std dev: 320 ms +- 6 ms
.........................................
wide_state_9x1200_checkpoint_sync: Mean +- std dev: 303 ms +- 5 ms
|
Annotation:
libs/langgraph/langgraph/graph/state.py#L1
+-----------------------------------------+---------+------------------------+
| Benchmark | main | changes |
+=========================================+=========+========================+
| react_agent_100x_sync | 268 ms | 273 ms: 1.02x slower |
+-----------------------------------------+---------+------------------------+
| wide_state_15x600_checkpoint_sync | 463 ms | 472 ms: 1.02x slower |
+-----------------------------------------+---------+------------------------+
| wide_state_9x1200_checkpoint_sync | 297 ms | 303 ms: 1.02x slower |
+-----------------------------------------+---------+------------------------+
| wide_state_9x1200 | 27.7 ms | 28.4 ms: 1.02x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_10x | 60.6 ms | 62.1 ms: 1.02x slower |
+-----------------------------------------+---------+------------------------+
| react_agent_100x | 339 ms | 348 ms: 1.03x slower |
+-----------------------------------------+---------+------------------------+
| react_agent_10x | 30.6 ms | 31.5 ms: 1.03x slower |
+-----------------------------------------+---------+------------------------+
| wide_state_15x600_checkpoint | 477 ms | 491 ms: 1.03x slower |
+-----------------------------------------+---------+------------------------+
| wide_state_9x1200_checkpoint | 310 ms | 320 ms: 1.03x slower |
+-----------------------------------------+---------+------------------------+
| react_agent_10x_sync | 22.1 ms | 22.9 ms: 1.03x slower |
+-----------------------------------------+---------+------------------------+
| wide_state_25x300_checkpoint_sync | 264 ms | 273 ms: 1.03x slower |
+-----------------------------------------+---------+------------------------+
| wide_state_9x1200_sync | 17.6 ms | 18.2 ms: 1.03x slower |
+-----------------------------------------+---------+------------------------+
| react_agent_10x_checkpoint_sync | 36.2 ms | 37.5 ms: 1.03x slower |
+-----------------------------------------+---------+------------------------+
| wide_state_15x600 | 28.0 ms | 29.0 ms: 1.04x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_100x_sync | 497 ms | 515 ms: 1.04x slower |
+-----------------------------------------+---------+------------------------+
| react_agent_10x_checkpoint | 46.3 ms | 48.1 ms: 1.04x slower |
+-----------------------------------------+---------+------------------------+
| wide_state_25x300_checkpoint | 278 ms | 288 ms: 1.04x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_10x_sync | 50.8 ms | 52.8 ms: 1.04x slower |
+-----------------------------------------+---------+------------------------+
| wide_state_25x300 | 23.8 ms | 24.9 ms: 1.04x slower |
+-----------------------------------------+---------+------------------------+
| wide_state_25x300_sync | 15.3 ms | 16.0 ms: 1.05x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_10x_checkpoint_sync | 92.0 ms | 96.9 ms: 1.05x slower |
+-----------------------------------------+---------+------------------------+
| react_agent_100x_checkpoint | 929 ms | 982 ms: 1.06x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_100x_checkpoint_sync | 905 ms | 958 ms: 1.06x slower |
+-----------------------------------------+---------+------------------------+
| wide_state_15x600_sync | 17.6 ms | 18.6 ms: 1.06x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_10x_checkpoint | 90.0 ms | 96.9 ms: 1.08
|
Loading