Skip to content

Imperative API

Imperative API #1111

Triggered via pull request December 4, 2024 23:18
Status Success
Total duration 47m 54s
Artifacts

bench.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

1 warning and 2 notices
benchmark
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Benchmark results: libs/langgraph/langgraph/channels/base.py#L1
......................................... fanout_to_subgraph_10x: Mean +- std dev: 64.3 ms +- 1.5 ms ......................................... fanout_to_subgraph_10x_sync: Mean +- std dev: 53.5 ms +- 1.1 ms ......................................... fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 93.1 ms +- 7.1 ms ......................................... fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 95.9 ms +- 1.2 ms ......................................... fanout_to_subgraph_100x: Mean +- std dev: 627 ms +- 18 ms ......................................... fanout_to_subgraph_100x_sync: Mean +- std dev: 529 ms +- 15 ms ......................................... fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 1.04 sec +- 0.04 sec ......................................... fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 973 ms +- 22 ms ......................................... react_agent_10x: Mean +- std dev: 31.0 ms +- 0.6 ms ......................................... react_agent_10x_sync: Mean +- std dev: 22.8 ms +- 0.4 ms ......................................... react_agent_10x_checkpoint: Mean +- std dev: 47.5 ms +- 1.3 ms ......................................... react_agent_10x_checkpoint_sync: Mean +- std dev: 36.7 ms +- 0.5 ms ......................................... react_agent_100x: Mean +- std dev: 347 ms +- 7 ms ......................................... react_agent_100x_sync: Mean +- std dev: 272 ms +- 3 ms ......................................... react_agent_100x_checkpoint: Mean +- std dev: 932 ms +- 11 ms ......................................... react_agent_100x_checkpoint_sync: Mean +- std dev: 838 ms +- 18 ms ......................................... wide_state_25x300: Mean +- std dev: 24.9 ms +- 0.6 ms ......................................... wide_state_25x300_sync: Mean +- std dev: 16.2 ms +- 0.3 ms ......................................... wide_state_25x300_checkpoint: Mean +- std dev: 278 ms +- 5 ms ......................................... wide_state_25x300_checkpoint_sync: Mean +- std dev: 266 ms +- 5 ms ......................................... wide_state_15x600: Mean +- std dev: 28.9 ms +- 0.6 ms ......................................... wide_state_15x600_sync: Mean +- std dev: 18.7 ms +- 0.3 ms ......................................... wide_state_15x600_checkpoint: Mean +- std dev: 481 ms +- 9 ms ......................................... wide_state_15x600_checkpoint_sync: Mean +- std dev: 463 ms +- 6 ms ......................................... wide_state_9x1200: Mean +- std dev: 29.0 ms +- 0.6 ms ......................................... wide_state_9x1200_sync: Mean +- std dev: 18.8 ms +- 0.3 ms ......................................... wide_state_9x1200_checkpoint: Mean +- std dev: 313 ms +- 5 ms ......................................... wide_state_9x1200_checkpoint_sync: Mean +- std dev: 298 ms +- 3 ms
Comparison against main: libs/langgraph/langgraph/channels/base.py#L1
+-----------------------------------------+---------+------------------------+ | Benchmark | main | changes | +=========================================+=========+========================+ | react_agent_100x_checkpoint | 939 ms | 932 ms: 1.01x faster | +-----------------------------------------+---------+------------------------+ | react_agent_10x_checkpoint_sync | 36.8 ms | 36.7 ms: 1.00x faster | +-----------------------------------------+---------+------------------------+ | wide_state_15x600_checkpoint | 478 ms | 481 ms: 1.01x slower | +-----------------------------------------+---------+------------------------+ | react_agent_10x_checkpoint | 47.1 ms | 47.5 ms: 1.01x slower | +-----------------------------------------+---------+------------------------+ | react_agent_100x | 343 ms | 347 ms: 1.01x slower | +-----------------------------------------+---------+------------------------+ | fanout_to_subgraph_10x_checkpoint_sync | 94.6 ms | 95.9 ms: 1.01x slower | +-----------------------------------------+---------+------------------------+ | react_agent_10x_sync | 22.3 ms | 22.8 ms: 1.02x slower | +-----------------------------------------+---------+------------------------+ | wide_state_15x600 | 28.1 ms | 28.9 ms: 1.03x slower | +-----------------------------------------+---------+------------------------+ | wide_state_9x1200 | 28.2 ms | 29.0 ms: 1.03x slower | +-----------------------------------------+---------+------------------------+ | wide_state_25x300 | 24.2 ms | 24.9 ms: 1.03x slower | +-----------------------------------------+---------+------------------------+ | fanout_to_subgraph_100x | 606 ms | 627 ms: 1.03x slower | +-----------------------------------------+---------+------------------------+ | fanout_to_subgraph_10x_sync | 51.4 ms | 53.5 ms: 1.04x slower | +-----------------------------------------+---------+------------------------+ | fanout_to_subgraph_10x | 61.6 ms | 64.3 ms: 1.04x slower | +-----------------------------------------+---------+------------------------+ | fanout_to_subgraph_100x_checkpoint_sync | 929 ms | 973 ms: 1.05x slower | +-----------------------------------------+---------+------------------------+ | wide_state_25x300_sync | 15.3 ms | 16.2 ms: 1.05x slower | +-----------------------------------------+---------+------------------------+ | wide_state_15x600_sync | 17.8 ms | 18.7 ms: 1.06x slower | +-----------------------------------------+---------+------------------------+ | fanout_to_subgraph_100x_sync | 501 ms | 529 ms: 1.06x slower | +-----------------------------------------+---------+------------------------+ | wide_state_9x1200_sync | 17.8 ms | 18.8 ms: 1.06x slower | +-----------------------------------------+---------+------------------------+ | fanout_to_subgraph_100x_checkpoint | 945 ms | 1.04 sec: 1.10x slower | +-----------------------------------------+---------+------------------------+ | Geometric mean | (ref) | 1.02x slower | +-----------------------------------------+---------+------------------------+ Benchmark hidden because not significant (9): wide_state_15x600_checkpoint_sync, wide_state_9x1200_checkpoint_sync, react_agent_10x, wide_state_25x300_checkpoint, react_agent_100x_checkpoint_sync, wide_state_25x300_checkpoint_sync, react_agent_100x_sync, wide_state_9x1200_checkpoint, fanout_to_subgraph_10x_checkpoint