Skip to content

Stream output from subgraphs while in-progress for sync stream #98

Stream output from subgraphs while in-progress for sync stream

Stream output from subgraphs while in-progress for sync stream #98

Triggered via pull request September 17, 2024 19:51
Status Success
Total duration 46m 12s
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/Makefile#L1
......................................... WARNING: the benchmark result may be unstable * the standard deviation (7.30 ms) is 12% of the mean (61.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: Mean +- std dev: 61.5 ms +- 7.3 ms ......................................... fanout_to_subgraph_10x_sync: Mean +- std dev: 52.2 ms +- 3.4 ms ......................................... fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 74.6 ms +- 1.2 ms ......................................... fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 79.2 ms +- 0.8 ms ......................................... fanout_to_subgraph_100x: Mean +- std dev: 544 ms +- 12 ms ......................................... fanout_to_subgraph_100x_sync: Mean +- std dev: 486 ms +- 6 ms ......................................... fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 757 ms +- 25 ms ......................................... fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 762 ms +- 7 ms ......................................... react_agent_10x: Mean +- std dev: 38.5 ms +- 0.7 ms ......................................... react_agent_10x_sync: Mean +- std dev: 29.8 ms +- 0.3 ms ......................................... react_agent_10x_checkpoint: Mean +- std dev: 51.3 ms +- 1.3 ms ......................................... react_agent_10x_checkpoint_sync: Mean +- std dev: 39.1 ms +- 0.6 ms ......................................... react_agent_100x: Mean +- std dev: 415 ms +- 16 ms ......................................... react_agent_100x_sync: Mean +- std dev: 340 ms +- 13 ms ......................................... react_agent_100x_checkpoint: Mean +- std dev: 981 ms +- 17 ms ......................................... react_agent_100x_checkpoint_sync: Mean +- std dev: 880 ms +- 19 ms ......................................... wide_state_25x300: Mean +- std dev: 19.8 ms +- 0.3 ms ......................................... wide_state_25x300_sync: Mean +- std dev: 12.4 ms +- 0.2 ms ......................................... wide_state_25x300_checkpoint: Mean +- std dev: 246 ms +- 9 ms ......................................... wide_state_25x300_checkpoint_sync: Mean +- std dev: 236 ms +- 7 ms ......................................... wide_state_15x600: Mean +- std dev: 23.0 ms +- 0.3 ms ......................................... wide_state_15x600_sync: Mean +- std dev: 14.2 ms +- 0.1 ms ......................................... wide_state_15x600_checkpoint: Mean +- std dev: 418 ms +- 14 ms ......................................... wide_state_15x600_checkpoint_sync: Mean +- std dev: 412 ms +- 13 ms ......................................... wide_state_9x1200: Mean +- std dev: 22.9 ms +- 0.3 ms ......................................... wide_state_9x1200_sync: Mean +- std dev: 14.2 ms +- 0.1 ms ......................................... wide_state_9x1200_checkpoint: Mean +- std dev: 273 ms +- 10 ms ......................................... wide_state_9x1200_checkpoint_sync: Mean +- std dev: 264 ms +- 8 ms
Comparison against main: libs/langgraph/Makefile#L1
+-----------------------------------------+---------+-----------------------+ | Benchmark | main | changes | +=========================================+=========+=======================+ | wide_state_9x1200 | 22.8 ms | 22.9 ms: 1.00x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600 | 22.9 ms | 23.0 ms: 1.00x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_checkpoint_sync | 38.9 ms | 39.1 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300 | 19.7 ms | 19.8 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x | 38.1 ms | 38.5 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_checkpoint | 244 ms | 246 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_checkpoint | 414 ms | 418 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_checkpoint | 269 ms | 273 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint_sync | 870 ms | 880 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_checkpoint_sync | 407 ms | 412 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_sync | 29.4 ms | 29.8 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_sync | 51.2 ms | 52.2 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint_sync | 77.7 ms | 79.2 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_sync | 12.0 ms | 12.4 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint_sync | 740 ms | 762 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_sync | 13.8 ms | 14.2 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_sync | 470 ms | 486 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_sync | 13.7 ms | 14.2 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x | 56.3 ms | 61.5 ms: 1.09x slower | +-----------------------------------------+---------+-----------------------+ | Geometric mean | (ref) | 1.01x slower | +-----------------------------------------+---------+-----------------------+ Benchmark hidden because not significant (9): fanout_to_subgraph_10x_checkpoint, fanout_to_subgraph_100x, react_agent_100x, react_agent_10x_checkpoint, fanout_to_subgraph_100x_checkpoint, wide_state_25x300_checkpoint_sync, react_agent_100x_sync, react_agent_100x_checkpoint, wide_state_9x1200_checkpoint_sync