lib: Restore prev behavior for update_state(None) #850
Triggered via pull request
November 15, 2024 22:55
Status
Success
Total duration
47m 50s
Artifacts
–
Annotations
1 warning and 2 notices
benchmark
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Benchmark results:
libs/langgraph/langgraph/pregel/__init__.py#L1
.........................................
fanout_to_subgraph_10x: Mean +- std dev: 61.2 ms +- 1.5 ms
.........................................
fanout_to_subgraph_10x_sync: Mean +- std dev: 52.2 ms +- 1.6 ms
.........................................
WARNING: the benchmark result may be unstable
* the standard deviation (10.2 ms) is 11% of the mean (95.0 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: 95.0 ms +- 10.2 ms
.........................................
fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 95.2 ms +- 1.5 ms
.........................................
fanout_to_subgraph_100x: Mean +- std dev: 629 ms +- 29 ms
.........................................
fanout_to_subgraph_100x_sync: Mean +- std dev: 507 ms +- 8 ms
.........................................
fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 964 ms +- 38 ms
.........................................
fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 924 ms +- 18 ms
.........................................
react_agent_10x: Mean +- std dev: 30.9 ms +- 0.6 ms
.........................................
react_agent_10x_sync: Mean +- std dev: 22.4 ms +- 0.4 ms
.........................................
react_agent_10x_checkpoint: Mean +- std dev: 47.3 ms +- 1.3 ms
.........................................
react_agent_10x_checkpoint_sync: Mean +- std dev: 36.9 ms +- 0.6 ms
.........................................
react_agent_100x: Mean +- std dev: 343 ms +- 6 ms
.........................................
react_agent_100x_sync: Mean +- std dev: 272 ms +- 4 ms
.........................................
react_agent_100x_checkpoint: Mean +- std dev: 951 ms +- 17 ms
.........................................
react_agent_100x_checkpoint_sync: Mean +- std dev: 846 ms +- 14 ms
.........................................
wide_state_25x300: Mean +- std dev: 24.3 ms +- 0.4 ms
.........................................
wide_state_25x300_sync: Mean +- std dev: 15.5 ms +- 0.2 ms
.........................................
wide_state_25x300_checkpoint: Mean +- std dev: 279 ms +- 3 ms
.........................................
wide_state_25x300_checkpoint_sync: Mean +- std dev: 267 ms +- 5 ms
.........................................
wide_state_15x600: Mean +- std dev: 28.3 ms +- 0.5 ms
.........................................
wide_state_15x600_sync: Mean +- std dev: 17.8 ms +- 0.2 ms
.........................................
wide_state_15x600_checkpoint: Mean +- std dev: 478 ms +- 5 ms
.........................................
wide_state_15x600_checkpoint_sync: Mean +- std dev: 465 ms +- 7 ms
.........................................
wide_state_9x1200: Mean +- std dev: 28.2 ms +- 0.4 ms
.........................................
wide_state_9x1200_sync: Mean +- std dev: 17.8 ms +- 0.3 ms
.........................................
wide_state_9x1200_checkpoint: Mean +- std dev: 314 ms +- 5 ms
.........................................
wide_state_9x1200_checkpoint_sync: Mean +- std dev: 297 ms +- 3 ms
|
Comparison against main:
libs/langgraph/langgraph/pregel/__init__.py#L1
+-----------------------------------------+---------+-----------------------+
| Benchmark | main | changes |
+=========================================+=========+=======================+
| react_agent_10x_sync | 22.5 ms | 22.4 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600_sync | 17.7 ms | 17.8 ms: 1.00x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300_checkpoint | 278 ms | 279 ms: 1.00x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300_checkpoint_sync | 265 ms | 267 ms: 1.00x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600_checkpoint_sync | 463 ms | 465 ms: 1.00x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_checkpoint_sync | 919 ms | 924 ms: 1.00x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300_sync | 15.4 ms | 15.5 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200_checkpoint | 311 ms | 314 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600 | 28.1 ms | 28.3 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_10x_checkpoint_sync | 36.5 ms | 36.9 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_sync | 501 ms | 507 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300 | 24.0 ms | 24.3 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_10x_checkpoint | 46.6 ms | 47.3 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint_sync | 833 ms | 846 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_sync | 51.3 ms | 52.2 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint | 931 ms | 951 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_checkpoint_sync | 93.2 ms | 95.2 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_checkpoint | 91.6 ms | 95.0 ms: 1.04x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_checkpoint | 928 ms | 964 ms: 1.04x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x | 600 ms | 629 ms: 1.05x slower |
+-----------------------------------------+---------+-----------------------+
| Geometric mean | (ref) | 1.01x slower |
+-----------------------------------------+---------+-----------------------+
Benchmark hidden because not significant (8): wide_state_9x1200_checkpoint_sync, wide_state_15x600_checkpoint, wide_state_9x1200_sync, react_agent_10x, wide_state_9x1200, react_agent_100x_sync, react_agent_100x, fanout_to_subgraph_10x
|