lib: Performance improvements #1210
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/checkpoint/langgraph/checkpoint/memory/__init__.py#L1
.........................................
fanout_to_subgraph_10x: Mean +- std dev: 62.4 ms +- 1.8 ms
.........................................
fanout_to_subgraph_10x_sync: Mean +- std dev: 53.3 ms +- 1.0 ms
.........................................
fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 76.7 ms +- 1.7 ms
.........................................
fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 97.1 ms +- 1.5 ms
.........................................
fanout_to_subgraph_100x: Mean +- std dev: 625 ms +- 29 ms
.........................................
fanout_to_subgraph_100x_sync: Mean +- std dev: 523 ms +- 14 ms
.........................................
fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 748 ms +- 21 ms
.........................................
fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 943 ms +- 16 ms
.........................................
react_agent_10x: Mean +- std dev: 30.7 ms +- 0.7 ms
.........................................
react_agent_10x_sync: Mean +- std dev: 22.7 ms +- 0.4 ms
.........................................
react_agent_10x_checkpoint: Mean +- std dev: 38.0 ms +- 0.7 ms
.........................................
react_agent_10x_checkpoint_sync: Mean +- std dev: 36.9 ms +- 0.6 ms
.........................................
react_agent_100x: Mean +- std dev: 340 ms +- 7 ms
.........................................
react_agent_100x_sync: Mean +- std dev: 274 ms +- 3 ms
.........................................
react_agent_100x_checkpoint: Mean +- std dev: 830 ms +- 5 ms
.........................................
react_agent_100x_checkpoint_sync: Mean +- std dev: 824 ms +- 8 ms
.........................................
wide_state_25x300: Mean +- std dev: 23.1 ms +- 0.4 ms
.........................................
wide_state_25x300_sync: Mean +- std dev: 14.8 ms +- 0.1 ms
.........................................
wide_state_25x300_checkpoint: Mean +- std dev: 285 ms +- 15 ms
.........................................
wide_state_25x300_checkpoint_sync: Mean +- std dev: 276 ms +- 15 ms
.........................................
wide_state_15x600: Mean +- std dev: 27.1 ms +- 0.5 ms
.........................................
wide_state_15x600_sync: Mean +- std dev: 17.4 ms +- 0.2 ms
.........................................
wide_state_15x600_checkpoint: Mean +- std dev: 489 ms +- 16 ms
.........................................
wide_state_15x600_checkpoint_sync: Mean +- std dev: 474 ms +- 14 ms
.........................................
wide_state_9x1200: Mean +- std dev: 27.1 ms +- 0.5 ms
.........................................
wide_state_9x1200_sync: Mean +- std dev: 17.4 ms +- 0.2 ms
.........................................
wide_state_9x1200_checkpoint: Mean +- std dev: 318 ms +- 15 ms
.........................................
wide_state_9x1200_checkpoint_sync: Mean +- std dev: 307 ms +- 15 ms
|
Annotation:
libs/checkpoint/langgraph/checkpoint/memory/__init__.py#L1
+-----------------------------------------+---------+-----------------------+
| Benchmark | main | changes |
+=========================================+=========+=======================+
| fanout_to_subgraph_100x_checkpoint | 989 ms | 748 ms: 1.32x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_checkpoint | 96.6 ms | 76.7 ms: 1.26x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_10x_checkpoint | 47.3 ms | 38.0 ms: 1.25x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint | 940 ms | 830 ms: 1.13x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x | 650 ms | 625 ms: 1.04x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300 | 24.0 ms | 23.1 ms: 1.04x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600 | 28.1 ms | 27.1 ms: 1.04x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200 | 28.0 ms | 27.1 ms: 1.04x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300_sync | 15.3 ms | 14.8 ms: 1.03x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_checkpoint_sync | 972 ms | 943 ms: 1.03x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x | 64.0 ms | 62.4 ms: 1.03x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint_sync | 842 ms | 824 ms: 1.02x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_sync | 534 ms | 523 ms: 1.02x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x | 347 ms | 340 ms: 1.02x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_10x | 31.3 ms | 30.7 ms: 1.02x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_10x_sync | 23.2 ms | 22.7 ms: 1.02x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600_sync | 17.7 ms | 17.4 ms: 1.02x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200_sync | 17.7 ms | 17.4 ms: 1.02x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_sync | 54.1 ms | 53.3 ms: 1.02x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x_sync | 277 ms | 274 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| Geometric mean | (ref) | 1.05x faster |
+-----------------------------------------+---------+-----------------------+
Benchmark hidden because not significant (8): wide_state_25x300_checkpoint, wide_state_9x1200_checkpoint, react_agent_10x_checkpoint_sync, fanout_to_subgraph_10x_checkpoint_sync, wide_state_15x600_checkpoint_sync, wide_state_9x1200_checkpoint_sync, wide_state_15x600_checkpoint, wide_state_25x300_checkpoint_sync
|
Loading