Implement RemotePregel
class and PregelProtocol
#492
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/protocol.py#L1
.........................................
fanout_to_subgraph_10x: Mean +- std dev: 48.6 ms +- 1.1 ms
.........................................
fanout_to_subgraph_10x_sync: Mean +- std dev: 43.6 ms +- 0.5 ms
.........................................
fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 70.2 ms +- 1.7 ms
.........................................
fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 73.5 ms +- 0.8 ms
.........................................
fanout_to_subgraph_100x: Mean +- std dev: 487 ms +- 9 ms
.........................................
fanout_to_subgraph_100x_sync: Mean +- std dev: 423 ms +- 5 ms
.........................................
fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 727 ms +- 24 ms
.........................................
fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 703 ms +- 5 ms
.........................................
react_agent_10x: Mean +- std dev: 28.1 ms +- 0.6 ms
.........................................
react_agent_10x_sync: Mean +- std dev: 20.4 ms +- 0.2 ms
.........................................
react_agent_10x_checkpoint: Mean +- std dev: 44.5 ms +- 3.8 ms
.........................................
WARNING: the benchmark result may be unstable
* the standard deviation (3.66 ms) is 11% of the mean (33.9 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.
react_agent_10x_checkpoint_sync: Mean +- std dev: 33.9 ms +- 3.7 ms
.........................................
react_agent_100x: Mean +- std dev: 312 ms +- 6 ms
.........................................
react_agent_100x_sync: Mean +- std dev: 247 ms +- 3 ms
.........................................
react_agent_100x_checkpoint: Mean +- std dev: 879 ms +- 14 ms
.........................................
react_agent_100x_checkpoint_sync: Mean +- std dev: 798 ms +- 7 ms
.........................................
wide_state_25x300: Mean +- std dev: 18.6 ms +- 0.4 ms
.........................................
wide_state_25x300_sync: Mean +- std dev: 10.9 ms +- 0.1 ms
.........................................
wide_state_25x300_checkpoint: Mean +- std dev: 243 ms +- 7 ms
.........................................
wide_state_25x300_checkpoint_sync: Mean +- std dev: 244 ms +- 17 ms
.........................................
wide_state_15x600: Mean +- std dev: 21.5 ms +- 0.4 ms
.........................................
wide_state_15x600_sync: Mean +- std dev: 12.6 ms +- 0.2 ms
.........................................
wide_state_15x600_checkpoint: Mean +- std dev: 415 ms +- 11 ms
.........................................
wide_state_15x600_checkpoint_sync: Mean +- std dev: 420 ms +- 19 ms
.........................................
wide_state_9x1200: Mean +- std dev: 21.5 ms +- 0.4 ms
.........................................
wide_state_9x1200_sync: Mean +- std dev: 12.6 ms +- 0.2 ms
.........................................
wide_state_9x1200_checkpoint: Mean +- std dev: 269 ms +- 8 ms
.........................................
wide_state_9x1200_checkpoint_sync: Mean +- std dev: 270 ms +- 15 ms
|
Comparison against main:
libs/langgraph/langgraph/pregel/protocol.py#L1
+-----------------------------------------+---------+-----------------------+
| Benchmark | main | changes |
+=========================================+=========+=======================+
| fanout_to_subgraph_10x | 49.1 ms | 48.6 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint_sync | 805 ms | 798 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300 | 18.7 ms | 18.6 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_10x | 28.4 ms | 28.1 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_sync | 44.0 ms | 43.6 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600 | 21.7 ms | 21.5 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_sync | 426 ms | 423 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200 | 21.7 ms | 21.5 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_checkpoint_sync | 707 ms | 703 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300_sync | 11.0 ms | 10.9 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_checkpoint | 715 ms | 727 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| Geometric mean | (ref) | 1.00x faster |
+-----------------------------------------+---------+-----------------------+
Benchmark hidden because not significant (17): wide_state_9x1200_checkpoint_sync, wide_state_25x300_checkpoint, wide_state_9x1200_checkpoint, fanout_to_subgraph_10x_checkpoint, wide_state_15x600_sync, wide_state_9x1200_sync, react_agent_10x_sync, react_agent_100x_sync, fanout_to_subgraph_100x, react_agent_100x, wide_state_15x600_checkpoint, wide_state_25x300_checkpoint_sync, fanout_to_subgraph_10x_checkpoint_sync, react_agent_100x_checkpoint, wide_state_15x600_checkpoint_sync, react_agent_10x_checkpoint, react_agent_10x_checkpoint_sync
|