Skip to content

sdk-py: Handle stream(params=) #1124

sdk-py: Handle stream(params=)

sdk-py: Handle stream(params=) #1124

Triggered via pull request December 5, 2024 01:26
Status Success
Total duration 46m 13s
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/sdk-py/langgraph_sdk/client.py#L1
......................................... fanout_to_subgraph_10x: Mean +- std dev: 61.4 ms +- 1.5 ms ......................................... fanout_to_subgraph_10x_sync: Mean +- std dev: 51.5 ms +- 1.1 ms ......................................... fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 91.1 ms +- 6.9 ms ......................................... fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 93.4 ms +- 0.7 ms ......................................... fanout_to_subgraph_100x: Mean +- std dev: 578 ms +- 20 ms ......................................... fanout_to_subgraph_100x_sync: Mean +- std dev: 501 ms +- 5 ms ......................................... fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 901 ms +- 41 ms ......................................... fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 920 ms +- 14 ms ......................................... react_agent_10x: Mean +- std dev: 30.6 ms +- 0.7 ms ......................................... react_agent_10x_sync: Mean +- std dev: 22.3 ms +- 0.1 ms ......................................... react_agent_10x_checkpoint: Mean +- std dev: 46.7 ms +- 1.0 ms ......................................... react_agent_10x_checkpoint_sync: Mean +- std dev: 36.4 ms +- 0.4 ms ......................................... react_agent_100x: Mean +- std dev: 342 ms +- 7 ms ......................................... react_agent_100x_sync: Mean +- std dev: 270 ms +- 3 ms ......................................... react_agent_100x_checkpoint: Mean +- std dev: 931 ms +- 8 ms ......................................... react_agent_100x_checkpoint_sync: Mean +- std dev: 827 ms +- 7 ms ......................................... wide_state_25x300: Mean +- std dev: 24.0 ms +- 0.4 ms ......................................... wide_state_25x300_sync: Mean +- std dev: 15.4 ms +- 0.1 ms ......................................... wide_state_25x300_checkpoint: Mean +- std dev: 277 ms +- 5 ms ......................................... wide_state_25x300_checkpoint_sync: Mean +- std dev: 265 ms +- 4 ms ......................................... wide_state_15x600: Mean +- std dev: 28.1 ms +- 0.5 ms ......................................... wide_state_15x600_sync: Mean +- std dev: 17.8 ms +- 0.2 ms ......................................... wide_state_15x600_checkpoint: Mean +- std dev: 477 ms +- 4 ms ......................................... wide_state_15x600_checkpoint_sync: Mean +- std dev: 464 ms +- 6 ms ......................................... wide_state_9x1200: Mean +- std dev: 28.0 ms +- 0.4 ms ......................................... wide_state_9x1200_sync: Mean +- std dev: 17.7 ms +- 0.1 ms ......................................... wide_state_9x1200_checkpoint: Mean +- std dev: 311 ms +- 3 ms ......................................... wide_state_9x1200_checkpoint_sync: Mean +- std dev: 298 ms +- 5 ms
Comparison against main: libs/sdk-py/langgraph_sdk/client.py#L1
+-----------------------------------------+---------+-----------------------+ | Benchmark | main | changes | +=========================================+=========+=======================+ | fanout_to_subgraph_100x | 609 ms | 578 ms: 1.06x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint | 933 ms | 901 ms: 1.04x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_sync | 22.8 ms | 22.3 ms: 1.03x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint_sync | 842 ms | 827 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_10x | 31.1 ms | 30.6 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_checkpoint | 317 ms | 311 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_checkpoint_sync | 37.0 ms | 36.4 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_sync | 18.0 ms | 17.7 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_checkpoint | 47.4 ms | 46.7 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint_sync | 935 ms | 920 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200 | 28.5 ms | 28.0 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_checkpoint_sync | 302 ms | 298 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint_sync | 94.7 ms | 93.4 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_sync | 273 ms | 270 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint | 941 ms | 931 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_checkpoint | 482 ms | 477 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_sync | 52.0 ms | 51.5 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_sync | 506 ms | 501 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_sync | 17.9 ms | 17.8 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300 | 24.2 ms | 24.0 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_sync | 15.5 ms | 15.4 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x | 345 ms | 342 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x | 61.9 ms | 61.4 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600 | 28.3 ms | 28.1 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_checkpoint | 279 ms | 277 ms: 1.01x faster | +---------------------------------------