Skip to content

Allow chaning add_node/add_edge/etc calls #133

Allow chaning add_node/add_edge/etc calls

Allow chaning add_node/add_edge/etc calls #133

Triggered via pull request September 19, 2024 23:54
Status Success
Total duration 44m 42s
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/graph/graph.py#L1
......................................... fanout_to_subgraph_10x: Mean +- std dev: 58.8 ms +- 1.4 ms ......................................... WARNING: the benchmark result may be unstable * the standard deviation (6.17 ms) is 11% of the mean (55.6 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: 55.6 ms +- 6.2 ms ......................................... fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 76.0 ms +- 1.0 ms ......................................... fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 80.5 ms +- 0.6 ms ......................................... fanout_to_subgraph_100x: Mean +- std dev: 540 ms +- 8 ms ......................................... fanout_to_subgraph_100x_sync: Mean +- std dev: 498 ms +- 5 ms ......................................... fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 743 ms +- 18 ms ......................................... fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 779 ms +- 6 ms ......................................... react_agent_10x: Mean +- std dev: 38.7 ms +- 0.8 ms ......................................... react_agent_10x_sync: Mean +- std dev: 29.4 ms +- 0.2 ms ......................................... react_agent_10x_checkpoint: Mean +- std dev: 54.4 ms +- 3.1 ms ......................................... react_agent_10x_checkpoint_sync: Mean +- std dev: 42.4 ms +- 3.0 ms ......................................... react_agent_100x: Mean +- std dev: 419 ms +- 15 ms ......................................... react_agent_100x_sync: Mean +- std dev: 339 ms +- 13 ms ......................................... react_agent_100x_checkpoint: Mean +- std dev: 913 ms +- 11 ms ......................................... react_agent_100x_checkpoint_sync: Mean +- std dev: 821 ms +- 14 ms ......................................... wide_state_25x300: Mean +- std dev: 20.2 ms +- 0.3 ms ......................................... wide_state_25x300_sync: Mean +- std dev: 12.6 ms +- 0.1 ms ......................................... wide_state_25x300_checkpoint: Mean +- std dev: 238 ms +- 8 ms ......................................... wide_state_25x300_checkpoint_sync: Mean +- std dev: 226 ms +- 7 ms ......................................... wide_state_15x600: Mean +- std dev: 23.5 ms +- 0.3 ms ......................................... wide_state_15x600_sync: Mean +- std dev: 14.6 ms +- 0.2 ms ......................................... wide_state_15x600_checkpoint: Mean +- std dev: 415 ms +- 11 ms ......................................... wide_state_15x600_checkpoint_sync: Mean +- std dev: 404 ms +- 12 ms ......................................... wide_state_9x1200: Mean +- std dev: 23.5 ms +- 0.4 ms ......................................... wide_state_9x1200_sync: Mean +- std dev: 14.6 ms +- 0.1 ms ......................................... wide_state_9x1200_checkpoint: Mean +- std dev: 266 ms +- 8 ms ......................................... wide_state_9x1200_checkpoint_sync: Mean +- std dev: 257 ms +- 8 ms
Comparison against main: libs/langgraph/langgraph/graph/graph.py#L1
+-----------------------------------------+---------+-----------------------+ | Benchmark | main | changes | +=========================================+=========+=======================+ | wide_state_25x300_checkpoint_sync | 228 ms | 226 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x | 544 ms | 540 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_sync | 29.6 ms | 29.4 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint_sync | 825 ms | 821 ms: 1.00x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint_sync | 782 ms | 779 ms: 1.00x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600 | 23.4 ms | 23.5 ms: 1.00x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint | 75.5 ms | 76.0 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x | 58.3 ms | 58.8 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_checkpoint | 235 ms | 238 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_sync | 492 ms | 498 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_checkpoint | 52.7 ms | 54.4 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | Geometric mean | (ref) | 1.00x slower | +-----------------------------------------+---------+-----------------------+ Benchmark hidden because not significant (17): react_agent_100x_sync, react_agent_10x, fanout_to_subgraph_10x_sync, react_agent_100x_checkpoint, react_agent_100x, wide_state_25x300, wide_state_15x600_sync, fanout_to_subgraph_10x_checkpoint_sync, fanout_to_subgraph_100x_checkpoint, wide_state_15x600_checkpoint_sync, wide_state_25x300_sync, wide_state_9x1200_sync, wide_state_15x600_checkpoint, wide_state_9x1200, react_agent_10x_checkpoint_sync, wide_state_9x1200_checkpoint, wide_state_9x1200_checkpoint_sync