fix(config): extract default values, description from pydantic models, typeddict and dataclass #1193
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: 62.2 ms +- 1.7 ms
.........................................
fanout_to_subgraph_10x_sync: Mean +- std dev: 52.9 ms +- 1.0 ms
.........................................
fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 95.5 ms +- 9.0 ms
.........................................
fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 95.8 ms +- 1.4 ms
.........................................
fanout_to_subgraph_100x: Mean +- std dev: 649 ms +- 21 ms
.........................................
fanout_to_subgraph_100x_sync: Mean +- std dev: 516 ms +- 10 ms
.........................................
fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 997 ms +- 44 ms
.........................................
fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 965 ms +- 23 ms
.........................................
react_agent_10x: Mean +- std dev: 31.0 ms +- 0.8 ms
.........................................
react_agent_10x_sync: Mean +- std dev: 22.7 ms +- 0.4 ms
.........................................
react_agent_10x_checkpoint: Mean +- std dev: 47.6 ms +- 1.1 ms
.........................................
react_agent_10x_checkpoint_sync: Mean +- std dev: 37.0 ms +- 0.5 ms
.........................................
react_agent_100x: Mean +- std dev: 345 ms +- 7 ms
.........................................
react_agent_100x_sync: Mean +- std dev: 272 ms +- 3 ms
.........................................
react_agent_100x_checkpoint: Mean +- std dev: 937 ms +- 11 ms
.........................................
react_agent_100x_checkpoint_sync: Mean +- std dev: 839 ms +- 13 ms
.........................................
wide_state_25x300: Mean +- std dev: 23.7 ms +- 0.4 ms
.........................................
wide_state_25x300_sync: Mean +- std dev: 14.9 ms +- 0.2 ms
.........................................
wide_state_25x300_checkpoint: Mean +- std dev: 288 ms +- 14 ms
.........................................
wide_state_25x300_checkpoint_sync: Mean +- std dev: 276 ms +- 15 ms
.........................................
wide_state_15x600: Mean +- std dev: 27.8 ms +- 0.5 ms
.........................................
wide_state_15x600_sync: Mean +- std dev: 17.5 ms +- 0.4 ms
.........................................
wide_state_15x600_checkpoint: Mean +- std dev: 489 ms +- 15 ms
.........................................
wide_state_15x600_checkpoint_sync: Mean +- std dev: 476 ms +- 16 ms
.........................................
wide_state_9x1200: Mean +- std dev: 27.8 ms +- 0.5 ms
.........................................
wide_state_9x1200_sync: Mean +- std dev: 17.7 ms +- 0.3 ms
.........................................
wide_state_9x1200_checkpoint: Mean +- std dev: 329 ms +- 19 ms
.........................................
wide_state_9x1200_checkpoint_sync: Mean +- std dev: 311 ms +- 16 ms
|
Comparison against main:
libs/langgraph/langgraph/pregel/__init__.py#L1
+-----------------------------------------+---------+-----------------------+
| Benchmark | main | changes |
+=========================================+=========+=======================+
| wide_state_25x300_sync | 14.9 ms | 14.9 ms: 1.00x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_10x_sync | 22.6 ms | 22.7 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_10x | 30.8 ms | 31.0 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x | 61.7 ms | 62.2 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_sync | 511 ms | 516 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600_sync | 17.3 ms | 17.5 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600 | 27.5 ms | 27.8 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint | 927 ms | 937 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint_sync | 828 ms | 839 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200_checkpoint_sync | 307 ms | 311 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200 | 27.4 ms | 27.8 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_checkpoint_sync | 94.4 ms | 95.8 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_10x_checkpoint_sync | 36.4 ms | 37.0 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_sync | 52.0 ms | 52.9 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_10x_checkpoint | 46.7 ms | 47.6 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_checkpoint_sync | 944 ms | 965 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_checkpoint | 93.3 ms | 95.5 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200_sync | 17.3 ms | 17.7 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200_checkpoint | 321 ms | 329 ms: 1.03x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x | 615 ms | 649 ms: 1.06x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_checkpoint | 942 ms | 997 ms: 1.06x slower |
+-----------------------------------------+---------+-----------------------+
| Geometric mean | (ref) | 1.01x slower |
+-----------------------------------------+---------+-----------------------+
Benchmark hidden because not significant (7): react_agent_100x_sync, wide_state_25x300_checkpoint, wide_state_15x600_checkpoint_sync, wide_state_25x300, react_agent_100x, wide_state_25x300_checkpoint_sync, wide_state_15x600_checkpoint
|