Implement RemotePregel
class and PregelProtocol
#486
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: 49.0 ms +- 0.9 ms
.........................................
fanout_to_subgraph_10x_sync: Mean +- std dev: 44.0 ms +- 0.5 ms
.........................................
fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 70.4 ms +- 1.7 ms
.........................................
fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 74.3 ms +- 1.5 ms
.........................................
fanout_to_subgraph_100x: Mean +- std dev: 506 ms +- 18 ms
.........................................
fanout_to_subgraph_100x_sync: Mean +- std dev: 425 ms +- 7 ms
.........................................
fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 750 ms +- 28 ms
.........................................
fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 708 ms +- 7 ms
.........................................
react_agent_10x: Mean +- std dev: 28.4 ms +- 0.6 ms
.........................................
react_agent_10x_sync: Mean +- std dev: 20.4 ms +- 0.3 ms
.........................................
react_agent_10x_checkpoint: Mean +- std dev: 44.6 ms +- 4.3 ms
.........................................
WARNING: the benchmark result may be unstable
* the standard deviation (4.29 ms) is 13% of the mean (34.2 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: 34.2 ms +- 4.3 ms
.........................................
react_agent_100x: Mean +- std dev: 313 ms +- 6 ms
.........................................
react_agent_100x_sync: Mean +- std dev: 248 ms +- 3 ms
.........................................
react_agent_100x_checkpoint: Mean +- std dev: 888 ms +- 15 ms
.........................................
react_agent_100x_checkpoint_sync: Mean +- std dev: 804 ms +- 13 ms
.........................................
wide_state_25x300: Mean +- std dev: 18.8 ms +- 0.4 ms
.........................................
wide_state_25x300_sync: Mean +- std dev: 11.2 ms +- 0.1 ms
.........................................
wide_state_25x300_checkpoint: Mean +- std dev: 246 ms +- 7 ms
.........................................
wide_state_25x300_checkpoint_sync: Mean +- std dev: 248 ms +- 18 ms
.........................................
wide_state_15x600: Mean +- std dev: 21.8 ms +- 0.4 ms
.........................................
wide_state_15x600_sync: Mean +- std dev: 12.8 ms +- 0.2 ms
.........................................
wide_state_15x600_checkpoint: Mean +- std dev: 417 ms +- 12 ms
.........................................
wide_state_15x600_checkpoint_sync: Mean +- std dev: 422 ms +- 19 ms
.........................................
wide_state_9x1200: Mean +- std dev: 21.9 ms +- 0.4 ms
.........................................
wide_state_9x1200_sync: Mean +- std dev: 13.0 ms +- 0.1 ms
.........................................
wide_state_9x1200_checkpoint: Mean +- std dev: 274 ms +- 8 ms
.........................................
wide_state_9x1200_checkpoint_sync: Mean +- std dev: 276 ms +- 19 ms
|
Comparison against main:
libs/langgraph/langgraph/pregel/protocol.py#L1
+-----------------------------------------+---------+-----------------------+
| Benchmark | main | changes |
+=========================================+=========+=======================+
| react_agent_10x | 28.7 ms | 28.4 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_10x_sync | 20.5 ms | 20.4 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x | 315 ms | 313 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_checkpoint | 70.8 ms | 70.4 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_checkpoint_sync | 711 ms | 708 ms: 1.00x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_checkpoint_sync | 73.9 ms | 74.3 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint | 881 ms | 888 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200 | 21.7 ms | 21.9 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600_sync | 12.6 ms | 12.8 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint_sync | 789 ms | 804 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600_checkpoint_sync | 414 ms | 422 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200_checkpoint | 268 ms | 274 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300_checkpoint | 240 ms | 246 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200_checkpoint_sync | 270 ms | 276 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300_sync | 10.9 ms | 11.2 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_checkpoint | 730 ms | 750 ms: 1.03x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200_sync | 12.6 ms | 13.0 ms: 1.03x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300_checkpoint_sync | 240 ms | 248 ms: 1.04x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x | 485 ms | 506 ms: 1.04x slower |
+-----------------------------------------+---------+-----------------------+
| Geometric mean | (ref) | 1.01x slower |
+-----------------------------------------+---------+-----------------------+
Benchmark hidden because not significant (9): react_agent_10x_checkpoint, wide_state_25x300, react_agent_100x_sync, wide_state_15x600, react_agent_10x_checkpoint_sync, fanout_to_subgraph_10x_sync, fanout_to_subgraph_10x, fanout_to_subgraph_100x_sync, wide_state_15x600_checkpoint
|