fix(config): extract default values, description from pydantic models, typeddict and dataclass #1199
Triggered via pull request
December 10, 2024 16:42
Status
Success
Total duration
49m 18s
Artifacts
–
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.0 ms +- 1.2 ms
.........................................
fanout_to_subgraph_10x_sync: Mean +- std dev: 52.5 ms +- 0.6 ms
.........................................
fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 93.3 ms +- 7.0 ms
.........................................
fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 95.1 ms +- 1.5 ms
.........................................
fanout_to_subgraph_100x: Mean +- std dev: 614 ms +- 10 ms
.........................................
fanout_to_subgraph_100x_sync: Mean +- std dev: 515 ms +- 8 ms
.........................................
fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 954 ms +- 53 ms
.........................................
fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 948 ms +- 17 ms
.........................................
react_agent_10x: Mean +- std dev: 31.1 ms +- 0.6 ms
.........................................
react_agent_10x_sync: Mean +- std dev: 22.9 ms +- 0.2 ms
.........................................
react_agent_10x_checkpoint: Mean +- std dev: 47.0 ms +- 0.8 ms
.........................................
react_agent_10x_checkpoint_sync: Mean +- std dev: 36.9 ms +- 0.5 ms
.........................................
react_agent_100x: Mean +- std dev: 348 ms +- 6 ms
.........................................
react_agent_100x_sync: Mean +- std dev: 277 ms +- 3 ms
.........................................
react_agent_100x_checkpoint: Mean +- std dev: 932 ms +- 9 ms
.........................................
react_agent_100x_checkpoint_sync: Mean +- std dev: 831 ms +- 7 ms
.........................................
wide_state_25x300: Mean +- std dev: 23.7 ms +- 0.4 ms
.........................................
wide_state_25x300_sync: Mean +- std dev: 15.0 ms +- 0.2 ms
.........................................
wide_state_25x300_checkpoint: Mean +- std dev: 286 ms +- 14 ms
.........................................
wide_state_25x300_checkpoint_sync: Mean +- std dev: 274 ms +- 12 ms
.........................................
wide_state_15x600: Mean +- std dev: 27.6 ms +- 0.4 ms
.........................................
wide_state_15x600_sync: Mean +- std dev: 17.4 ms +- 0.1 ms
.........................................
wide_state_15x600_checkpoint: Mean +- std dev: 487 ms +- 14 ms
.........................................
wide_state_15x600_checkpoint_sync: Mean +- std dev: 473 ms +- 15 ms
.........................................
wide_state_9x1200: Mean +- std dev: 27.5 ms +- 0.5 ms
.........................................
wide_state_9x1200_sync: Mean +- std dev: 17.5 ms +- 0.3 ms
.........................................
wide_state_9x1200_checkpoint: Mean +- std dev: 323 ms +- 16 ms
.........................................
wide_state_9x1200_checkpoint_sync: Mean +- std dev: 307 ms +- 13 ms
|
Comparison against main:
libs/langgraph/langgraph/pregel/__init__.py#L1
+----------------------------------------+---------+-----------------------+
| Benchmark | main | changes |
+========================================+=========+=======================+
| fanout_to_subgraph_100x | 628 ms | 614 ms: 1.02x faster |
+----------------------------------------+---------+-----------------------+
| react_agent_100x | 346 ms | 348 ms: 1.00x slower |
+----------------------------------------+---------+-----------------------+
| react_agent_10x_sync | 22.8 ms | 22.9 ms: 1.00x slower |
+----------------------------------------+---------+-----------------------+
| react_agent_100x_sync | 275 ms | 277 ms: 1.01x slower |
+----------------------------------------+---------+-----------------------+
| react_agent_10x_checkpoint_sync | 36.6 ms | 36.9 ms: 1.01x slower |
+----------------------------------------+---------+-----------------------+
| wide_state_15x600_sync | 17.3 ms | 17.4 ms: 1.01x slower |
+----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_sync | 52.1 ms | 52.5 ms: 1.01x slower |
+----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_checkpoint_sync | 94.4 ms | 95.1 ms: 1.01x slower |
+----------------------------------------+---------+-----------------------+
| react_agent_10x_checkpoint | 46.6 ms | 47.0 ms: 1.01x slower |
+----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_sync | 510 ms | 515 ms: 1.01x slower |
+----------------------------------------+---------+-----------------------+
| wide_state_25x300_sync | 14.9 ms | 15.0 ms: 1.01x slower |
+----------------------------------------+---------+-----------------------+
| wide_state_9x1200_checkpoint | 319 ms | 323 ms: 1.01x slower |
+----------------------------------------+---------+-----------------------+
| wide_state_9x1200_sync | 17.3 ms | 17.5 ms: 1.01x slower |
+----------------------------------------+---------+-----------------------+
| Geometric mean | (ref) | 1.00x slower |
+----------------------------------------+---------+-----------------------+
Benchmark hidden because not significant (15): fanout_to_subgraph_10x_checkpoint, react_agent_100x_checkpoint_sync, fanout_to_subgraph_10x, wide_state_9x1200_checkpoint_sync, wide_state_25x300, wide_state_9x1200, wide_state_25x300_checkpoint, fanout_to_subgraph_100x_checkpoint, react_agent_100x_checkpoint, wide_state_15x600, react_agent_10x, wide_state_25x300_checkpoint_sync, fanout_to_subgraph_100x_checkpoint_sync, wide_state_15x600_checkpoint, wide_state_15x600_checkpoint_sync
|