Skip to content

Revert "sdk-py: Fix SSE parsing to split lines only \n \r \r\n per SSE spec" #1014

Revert "sdk-py: Fix SSE parsing to split lines only \n \r \r\n per SSE spec"

Revert "sdk-py: Fix SSE parsing to split lines only \n \r \r\n per SSE spec" #1014

Triggered via pull request November 28, 2024 01:32
Status Success
Total duration 47m 5s
Artifacts

bench.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 notices
Benchmark results: libs/sdk-py/langgraph_sdk/client.py#L1
......................................... fanout_to_subgraph_10x: Mean +- std dev: 61.2 ms +- 1.3 ms ......................................... fanout_to_subgraph_10x_sync: Mean +- std dev: 51.5 ms +- 1.3 ms ......................................... fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 91.7 ms +- 8.1 ms ......................................... fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 93.6 ms +- 0.8 ms ......................................... fanout_to_subgraph_100x: Mean +- std dev: 601 ms +- 24 ms ......................................... fanout_to_subgraph_100x_sync: Mean +- std dev: 500 ms +- 7 ms ......................................... fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 944 ms +- 39 ms ......................................... fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 922 ms +- 16 ms ......................................... react_agent_10x: Mean +- std dev: 30.9 ms +- 0.6 ms ......................................... react_agent_10x_sync: Mean +- std dev: 22.3 ms +- 0.2 ms ......................................... react_agent_10x_checkpoint: Mean +- std dev: 46.8 ms +- 0.7 ms ......................................... react_agent_10x_checkpoint_sync: Mean +- std dev: 36.6 ms +- 0.5 ms ......................................... react_agent_100x: Mean +- std dev: 342 ms +- 6 ms ......................................... react_agent_100x_sync: Mean +- std dev: 270 ms +- 3 ms ......................................... react_agent_100x_checkpoint: Mean +- std dev: 935 ms +- 10 ms ......................................... react_agent_100x_checkpoint_sync: Mean +- std dev: 838 ms +- 10 ms ......................................... wide_state_25x300: Mean +- std dev: 24.2 ms +- 0.5 ms ......................................... wide_state_25x300_sync: Mean +- std dev: 15.4 ms +- 0.1 ms ......................................... wide_state_25x300_checkpoint: Mean +- std dev: 278 ms +- 4 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.7 ms +- 0.1 ms ......................................... wide_state_15x600_checkpoint: Mean +- std dev: 477 ms +- 4 ms ......................................... wide_state_15x600_checkpoint_sync: Mean +- std dev: 462 ms +- 6 ms ......................................... wide_state_9x1200: Mean +- std dev: 28.1 ms +- 0.5 ms ......................................... wide_state_9x1200_sync: Mean +- std dev: 17.8 ms +- 0.3 ms ......................................... wide_state_9x1200_checkpoint: Mean +- std dev: 312 ms +- 3 ms ......................................... wide_state_9x1200_checkpoint_sync: Mean +- std dev: 298 ms +- 4 ms
Comparison against main: libs/sdk-py/langgraph_sdk/client.py#L1
+-----------------------------------------+----------+-----------------------+ | Benchmark | main | changes | +=========================================+==========+=======================+ | fanout_to_subgraph_100x | 643 ms | 601 ms: 1.07x faster | +-----------------------------------------+----------+-----------------------+ | fanout_to_subgraph_100x_checkpoint | 1.00 sec | 944 ms: 1.06x faster | +-----------------------------------------+----------+-----------------------+ | react_agent_100x_checkpoint | 976 ms | 935 ms: 1.04x faster | +-----------------------------------------+----------+-----------------------+ | fanout_to_subgraph_10x_checkpoint | 95.7 ms | 91.7 ms: 1.04x faster | +-----------------------------------------+----------+-----------------------+ | react_agent_100x_checkpoint_sync | 870 ms | 838 ms: 1.04x faster | +-----------------------------------------+----------+-----------------------+ | fanout_to_subgraph_10x_checkpoint_sync | 96.0 ms | 93.6 ms: 1.03x faster | +-----------------------------------------+----------+-----------------------+ | fanout_to_subgraph_100x_checkpoint_sync | 944 ms | 922 ms: 1.02x faster | +-----------------------------------------+----------+-----------------------+ | react_agent_100x_sync | 274 ms | 270 ms: 1.01x faster | +-----------------------------------------+----------+-----------------------+ | react_agent_10x_checkpoint | 47.5 ms | 46.8 ms: 1.01x faster | +-----------------------------------------+----------+-----------------------+ | fanout_to_subgraph_100x_sync | 507 ms | 500 ms: 1.01x faster | +-----------------------------------------+----------+-----------------------+ | react_agent_100x | 346 ms | 342 ms: 1.01x faster | +-----------------------------------------+----------+-----------------------+ | react_agent_10x_checkpoint_sync | 37.1 ms | 36.6 ms: 1.01x faster | +-----------------------------------------+----------+-----------------------+ | wide_state_15x600_sync | 17.9 ms | 17.7 ms: 1.01x faster | +-----------------------------------------+----------+-----------------------+ | fanout_to_subgraph_10x_sync | 52.1 ms | 51.5 ms: 1.01x faster | +-----------------------------------------+----------+-----------------------+ | fanout_to_subgraph_10x | 61.9 ms | 61.2 ms: 1.01x faster | +-----------------------------------------+----------+-----------------------+ | wide_state_25x300_checkpoint | 281 ms | 278 ms: 1.01x faster | +-----------------------------------------+----------+-----------------------+ | wide_state_9x1200_checkpoint | 316 ms | 312 ms: 1.01x faster | +-----------------------------------------+----------+-----------------------+ | wide_state_15x600 | 28.4 ms | 28.1 ms: 1.01x faster | +-----------------------------------------+----------+-----------------------+ | react_agent_10x_sync | 22.5 ms | 22.3 ms: 1.01x faster | +-----------------------------------------+----------+-----------------------+ | wide_state_9x1200_sync | 17.9 ms | 17.8 ms: 1.01x faster | +-----------------------------------------+----------+-----------------------+ | react_agent_10x | 31.2 ms | 30.9 ms: 1.01x faster | +-----------------------------------------+----------+-----------------------+ | wide_state_9x1200 | 28.4 ms | 28.1 ms: 1.01x faster | +-----------------------------------------+----------+-----------------------+ | wide_state_25x300_sync | 15.5 ms | 15.4 ms: 1.01x faster | +-----------------------------------------+----------+-----------------------+ | wide_state_15x600_checkpoint | 482 ms | 477 ms: 1.01x faster | +-----------------------------------------+----------+-----------------------+ | wide_state_25x300 | 24.4 ms | 24.2 ms: 1.0