Skip to content

Stream subgraph output while it executes #88

Stream subgraph output while it executes

Stream subgraph output while it executes #88

Triggered via pull request September 17, 2024 01:06
Status Success
Total duration 23m 10s
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/pregel/__init__.py#L1
......................................... WARNING: the benchmark result may be unstable * the standard deviation (6.48 ms) is 10% of the mean (62.9 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: 62.9 ms +- 6.5 ms ......................................... fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 78.4 ms +- 1.9 ms ......................................... fanout_to_subgraph_100x: Mean +- std dev: 576 ms +- 21 ms ......................................... fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 774 ms +- 15 ms ......................................... react_agent_10x: Mean +- std dev: 39.1 ms +- 0.7 ms ......................................... react_agent_10x_checkpoint: Mean +- std dev: 52.6 ms +- 1.4 ms ......................................... react_agent_100x: Mean +- std dev: 409 ms +- 8 ms ......................................... react_agent_100x_checkpoint: Mean +- std dev: 969 ms +- 11 ms ......................................... wide_state_25x300: Mean +- std dev: 20.9 ms +- 0.3 ms ......................................... wide_state_25x300_checkpoint: Mean +- std dev: 246 ms +- 8 ms ......................................... wide_state_15x600: Mean +- std dev: 24.2 ms +- 0.3 ms ......................................... wide_state_15x600_checkpoint: Mean +- std dev: 421 ms +- 13 ms ......................................... wide_state_9x1200: Mean +- std dev: 24.3 ms +- 0.2 ms ......................................... wide_state_9x1200_checkpoint: Mean +- std dev: 273 ms +- 8 ms
Comparison against main: libs/langgraph/langgraph/pregel/__init__.py#L1
+------------------------------------+---------+-----------------------+ | Benchmark | main | changes | +====================================+=========+=======================+ | fanout_to_subgraph_10x_checkpoint | 79.1 ms | 78.4 ms: 1.01x faster | +------------------------------------+---------+-----------------------+ | wide_state_15x600 | 24.1 ms | 24.2 ms: 1.00x slower | +------------------------------------+---------+-----------------------+ | wide_state_25x300 | 20.7 ms | 20.9 ms: 1.01x slower | +------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint | 769 ms | 774 ms: 1.01x slower | +------------------------------------+---------+-----------------------+ | wide_state_9x1200_checkpoint | 271 ms | 273 ms: 1.01x slower | +------------------------------------+---------+-----------------------+ | wide_state_9x1200 | 24.1 ms | 24.3 ms: 1.01x slower | +------------------------------------+---------+-----------------------+ | react_agent_10x | 38.7 ms | 39.1 ms: 1.01x slower | +------------------------------------+---------+-----------------------+ | react_agent_100x | 404 ms | 409 ms: 1.01x slower | +------------------------------------+---------+-----------------------+ | wide_state_25x300_checkpoint | 242 ms | 246 ms: 1.02x slower | +------------------------------------+---------+-----------------------+ | Geometric mean | (ref) | 1.01x slower | +------------------------------------+---------+-----------------------+ Benchmark hidden because not significant (5): react_agent_100x_checkpoint, fanout_to_subgraph_100x, react_agent_10x_checkpoint, wide_state_15x600_checkpoint, fanout_to_subgraph_10x