Skip to content

Implement RemotePregel class and PregelProtocol #491

Implement RemotePregel class and PregelProtocol

Implement RemotePregel class and PregelProtocol #491

Triggered via pull request October 10, 2024 16:03
Status Success
Total duration 43m 9s
Artifacts

bench.yml

on: pull_request
Fit to window
Zoom out
Zoom in

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.5 ms +- 1.1 ms ......................................... fanout_to_subgraph_10x_sync: Mean +- std dev: 43.1 ms +- 0.5 ms ......................................... fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 69.5 ms +- 1.7 ms ......................................... fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 72.0 ms +- 1.0 ms ......................................... fanout_to_subgraph_100x: Mean +- std dev: 464 ms +- 10 ms ......................................... fanout_to_subgraph_100x_sync: Mean +- std dev: 417 ms +- 6 ms ......................................... fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 674 ms +- 19 ms ......................................... fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 686 ms +- 5 ms ......................................... react_agent_10x: Mean +- std dev: 28.0 ms +- 0.7 ms ......................................... react_agent_10x_sync: Mean +- std dev: 20.1 ms +- 0.3 ms ......................................... react_agent_10x_checkpoint: Mean +- std dev: 43.6 ms +- 3.3 ms ......................................... react_agent_10x_checkpoint_sync: Mean +- std dev: 32.9 ms +- 2.9 ms ......................................... react_agent_100x: Mean +- std dev: 309 ms +- 7 ms ......................................... react_agent_100x_sync: Mean +- std dev: 245 ms +- 2 ms ......................................... react_agent_100x_checkpoint: Mean +- std dev: 864 ms +- 13 ms ......................................... react_agent_100x_checkpoint_sync: Mean +- std dev: 775 ms +- 5 ms ......................................... wide_state_25x300: Mean +- std dev: 18.3 ms +- 0.3 ms ......................................... wide_state_25x300_sync: Mean +- std dev: 10.8 ms +- 0.2 ms ......................................... wide_state_25x300_checkpoint: Mean +- std dev: 238 ms +- 7 ms ......................................... wide_state_25x300_checkpoint_sync: Mean +- std dev: 238 ms +- 13 ms ......................................... wide_state_15x600: Mean +- std dev: 21.3 ms +- 0.5 ms ......................................... wide_state_15x600_sync: Mean +- std dev: 12.5 ms +- 0.1 ms ......................................... wide_state_15x600_checkpoint: Mean +- std dev: 408 ms +- 11 ms ......................................... wide_state_15x600_checkpoint_sync: Mean +- std dev: 411 ms +- 17 ms ......................................... wide_state_9x1200: Mean +- std dev: 21.4 ms +- 0.3 ms ......................................... wide_state_9x1200_sync: Mean +- std dev: 12.5 ms +- 0.2 ms ......................................... wide_state_9x1200_checkpoint: Mean +- std dev: 267 ms +- 8 ms ......................................... wide_state_9x1200_checkpoint_sync: Mean +- std dev: 266 ms +- 13 ms
Comparison against main: libs/langgraph/langgraph/pregel/protocol.py#L1
+-----------------------------------------+---------+-----------------------+ | Benchmark | main | changes | +=========================================+=========+=======================+ | fanout_to_subgraph_100x_checkpoint | 715 ms | 674 ms: 1.06x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x | 488 ms | 464 ms: 1.05x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint_sync | 805 ms | 775 ms: 1.04x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint_sync | 707 ms | 686 ms: 1.03x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_checkpoint_sync | 244 ms | 238 ms: 1.03x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_checkpoint | 244 ms | 238 ms: 1.03x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_checkpoint_sync | 272 ms | 266 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_sync | 426 ms | 417 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300 | 18.7 ms | 18.3 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint_sync | 73.5 ms | 72.0 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_sync | 20.5 ms | 20.1 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_sync | 44.0 ms | 43.1 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_checkpoint_sync | 418 ms | 411 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_checkpoint | 415 ms | 408 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_sync | 11.0 ms | 10.8 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600 | 21.7 ms | 21.3 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint | 877 ms | 864 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_sync | 248 ms | 245 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint | 70.4 ms | 69.5 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200 | 21.7 ms | 21.4 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x | 313 ms | 309 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_checkpoint | 271 ms | 267 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x | 49.1 ms | 48.5 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_10x | 28.4 ms | 28.0 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_sync | 12.6 ms | 12.5 ms: 1.01x faster | +---------------------------------------