fix(config): extract default values, description from pydantic models, typeddict and dataclass #1197
Annotations
1 warning and 2 notices
benchmark
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Benchmark results:
libs/langgraph/langgraph/pregel/__init__.py#L1
.........................................
fanout_to_subgraph_10x: Mean +- std dev: 63.8 ms +- 1.8 ms
.........................................
fanout_to_subgraph_10x_sync: Mean +- std dev: 53.8 ms +- 1.1 ms
.........................................
fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 97.1 ms +- 9.4 ms
.........................................
fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 97.5 ms +- 1.8 ms
.........................................
fanout_to_subgraph_100x: Mean +- std dev: 688 ms +- 26 ms
.........................................
fanout_to_subgraph_100x_sync: Mean +- std dev: 520 ms +- 11 ms
.........................................
fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 1.05 sec +- 0.05 sec
.........................................
fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 977 ms +- 23 ms
.........................................
react_agent_10x: Mean +- std dev: 31.6 ms +- 0.7 ms
.........................................
react_agent_10x_sync: Mean +- std dev: 23.4 ms +- 0.3 ms
.........................................
react_agent_10x_checkpoint: Mean +- std dev: 48.6 ms +- 0.9 ms
.........................................
react_agent_10x_checkpoint_sync: Mean +- std dev: 37.6 ms +- 0.7 ms
.........................................
react_agent_100x: Mean +- std dev: 349 ms +- 7 ms
.........................................
react_agent_100x_sync: Mean +- std dev: 276 ms +- 3 ms
.........................................
react_agent_100x_checkpoint: Mean +- std dev: 956 ms +- 14 ms
.........................................
react_agent_100x_checkpoint_sync: Mean +- std dev: 851 ms +- 8 ms
.........................................
wide_state_25x300: Mean +- std dev: 23.8 ms +- 0.5 ms
.........................................
wide_state_25x300_sync: Mean +- std dev: 15.1 ms +- 0.2 ms
.........................................
wide_state_25x300_checkpoint: Mean +- std dev: 290 ms +- 15 ms
.........................................
wide_state_25x300_checkpoint_sync: Mean +- std dev: 278 ms +- 15 ms
.........................................
wide_state_15x600: Mean +- std dev: 27.8 ms +- 0.4 ms
.........................................
wide_state_15x600_sync: Mean +- std dev: 17.5 ms +- 0.2 ms
.........................................
wide_state_15x600_checkpoint: Mean +- std dev: 495 ms +- 17 ms
.........................................
wide_state_15x600_checkpoint_sync: Mean +- std dev: 479 ms +- 16 ms
.........................................
wide_state_9x1200: Mean +- std dev: 27.7 ms +- 0.5 ms
.........................................
wide_state_9x1200_sync: Mean +- std dev: 17.5 ms +- 0.5 ms
.........................................
wide_state_9x1200_checkpoint: Mean +- std dev: 325 ms +- 15 ms
.........................................
wide_state_9x1200_checkpoint_sync: Mean +- std dev: 310 ms +- 14 ms
|
Comparison against main:
libs/langgraph/langgraph/pregel/__init__.py#L1
+-----------------------------------------+---------+------------------------+
| Benchmark | main | changes |
+=========================================+=========+========================+
| wide_state_25x300_sync | 15.0 ms | 15.1 ms: 1.01x slower |
+-----------------------------------------+---------+------------------------+
| wide_state_15x600_sync | 17.4 ms | 17.5 ms: 1.01x slower |
+-----------------------------------------+---------+------------------------+
| react_agent_10x | 31.3 ms | 31.6 ms: 1.01x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_100x_sync | 516 ms | 520 ms: 1.01x slower |
+-----------------------------------------+---------+------------------------+
| wide_state_15x600_checkpoint | 490 ms | 495 ms: 1.01x slower |
+-----------------------------------------+---------+------------------------+
| react_agent_100x_checkpoint_sync | 840 ms | 851 ms: 1.01x slower |
+-----------------------------------------+---------+------------------------+
| react_agent_10x_sync | 23.1 ms | 23.4 ms: 1.01x slower |
+-----------------------------------------+---------+------------------------+
| react_agent_100x_checkpoint | 942 ms | 956 ms: 1.02x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_10x_checkpoint_sync | 96.0 ms | 97.5 ms: 1.02x slower |
+-----------------------------------------+---------+------------------------+
| react_agent_10x_checkpoint_sync | 37.0 ms | 37.6 ms: 1.02x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_10x_sync | 52.7 ms | 53.8 ms: 1.02x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_100x_checkpoint_sync | 956 ms | 977 ms: 1.02x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_10x | 62.3 ms | 63.8 ms: 1.02x slower |
+-----------------------------------------+---------+------------------------+
| react_agent_10x_checkpoint | 47.1 ms | 48.6 ms: 1.03x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_100x | 640 ms | 688 ms: 1.08x slower |
+-----------------------------------------+---------+------------------------+
| fanout_to_subgraph_100x_checkpoint | 963 ms | 1.05 sec: 1.09x slower |
+-----------------------------------------+---------+------------------------+
| Geometric mean | (ref) | 1.01x slower |
+-----------------------------------------+---------+------------------------+
Benchmark hidden because not significant (12): wide_state_15x600, wide_state_25x300, wide_state_25x300_checkpoint, wide_state_9x1200, react_agent_100x, react_agent_100x_sync, wide_state_9x1200_checkpoint, wide_state_9x1200_sync, wide_state_9x1200_checkpoint_sync, wide_state_15x600_checkpoint_sync, wide_state_25x300_checkpoint_sync, fanout_to_subgraph_10x_checkpoint
|