Skip to content

Add stream_mode=custom #134

Add stream_mode=custom

Add stream_mode=custom #134

Triggered via pull request September 20, 2024 00:03
Status Success
Total duration 46m 7s
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/constants.py#L1
......................................... fanout_to_subgraph_10x: Mean +- std dev: 59.3 ms +- 1.7 ms ......................................... WARNING: the benchmark result may be unstable * the standard deviation (6.18 ms) is 11% of the mean (56.5 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. fanout_to_subgraph_10x_sync: Mean +- std dev: 56.5 ms +- 6.2 ms ......................................... fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 77.4 ms +- 1.5 ms ......................................... fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 82.1 ms +- 2.5 ms ......................................... fanout_to_subgraph_100x: Mean +- std dev: 553 ms +- 14 ms ......................................... fanout_to_subgraph_100x_sync: Mean +- std dev: 499 ms +- 5 ms ......................................... fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 750 ms +- 23 ms ......................................... fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 784 ms +- 7 ms ......................................... react_agent_10x: Mean +- std dev: 38.8 ms +- 0.7 ms ......................................... react_agent_10x_sync: Mean +- std dev: 29.6 ms +- 0.5 ms ......................................... react_agent_10x_checkpoint: Mean +- std dev: 52.3 ms +- 1.4 ms ......................................... react_agent_10x_checkpoint_sync: Mean +- std dev: 42.3 ms +- 3.1 ms ......................................... react_agent_100x: Mean +- std dev: 413 ms +- 7 ms ......................................... react_agent_100x_sync: Mean +- std dev: 346 ms +- 16 ms ......................................... react_agent_100x_checkpoint: Mean +- std dev: 943 ms +- 37 ms ......................................... react_agent_100x_checkpoint_sync: Mean +- std dev: 893 ms +- 23 ms ......................................... wide_state_25x300: Mean +- std dev: 21.0 ms +- 0.4 ms ......................................... wide_state_25x300_sync: Mean +- std dev: 13.1 ms +- 0.3 ms ......................................... wide_state_25x300_checkpoint: Mean +- std dev: 242 ms +- 7 ms ......................................... wide_state_25x300_checkpoint_sync: Mean +- std dev: 233 ms +- 7 ms ......................................... wide_state_15x600: Mean +- std dev: 24.2 ms +- 0.4 ms ......................................... wide_state_15x600_sync: Mean +- std dev: 15.0 ms +- 0.2 ms ......................................... wide_state_15x600_checkpoint: Mean +- std dev: 420 ms +- 11 ms ......................................... wide_state_15x600_checkpoint_sync: Mean +- std dev: 410 ms +- 12 ms ......................................... wide_state_9x1200: Mean +- std dev: 24.3 ms +- 0.4 ms ......................................... wide_state_9x1200_sync: Mean +- std dev: 15.0 ms +- 0.2 ms ......................................... wide_state_9x1200_checkpoint: Mean +- std dev: 272 ms +- 9 ms ......................................... wide_state_9x1200_checkpoint_sync: Mean +- std dev: 260 ms +- 8 ms
Comparison against main: libs/langgraph/langgraph/constants.py#L1
+-----------------------------------------+---------+-----------------------+ | Benchmark | main | changes | +=========================================+=========+=======================+ | react_agent_100x | 420 ms | 413 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_checkpoint | 52.7 ms | 52.3 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint_sync | 782 ms | 784 ms: 1.00x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint | 743 ms | 750 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_sync | 492 ms | 499 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x | 544 ms | 553 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_checkpoint_sync | 403 ms | 410 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_checkpoint | 414 ms | 420 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_sync | 340 ms | 346 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x | 58.3 ms | 59.3 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint_sync | 80.6 ms | 82.1 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_checkpoint_sync | 228 ms | 233 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_checkpoint_sync | 255 ms | 260 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint | 75.5 ms | 77.4 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_checkpoint | 235 ms | 242 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_checkpoint | 265 ms | 272 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint | 915 ms | 943 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_sync | 14.6 ms | 15.0 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_sync | 14.6 ms | 15.0 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300 | 20.3 ms | 21.0 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600 | 23.4 ms | 24.2 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200 | 23.4 ms | 24.3 ms: 1.04x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_sync | 12.6 ms | 13.1 ms: 1.04x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint_sync | 825 ms | 893 ms: 1.08x slower | +-----------------------------------------+---------+-----------------------+ | Geometric mean | (ref) | 1.02x slower | +---------------------------------------