Skip to content

docs: add docstrings to add_node overloads #4944

docs: add docstrings to add_node overloads

docs: add docstrings to add_node overloads #4944

Triggered via pull request November 28, 2025 07:18
Status Success
Total duration 20m 30s
Artifacts

bench.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 notices
Comparison against main: libs/langgraph/langgraph/graph/state.py#L0
+-----------------------------------------+---------+-----------------------+ | Benchmark | main | changes | +=========================================+=========+=======================+ | sequential_1000_compilation | 184 ms | 162 ms: 1.14x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint | 35.4 ms | 31.7 ms: 1.12x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x | 33.3 ms | 30.2 ms: 1.11x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_sync | 13.5 ms | 12.5 ms: 1.08x faster | +-----------------------------------------+---------+-----------------------+ | pydantic_state_9x1200_sync | 40.1 ms | 38.1 ms: 1.05x faster | +-----------------------------------------+---------+-----------------------+ | pydantic_state_15x600_sync | 37.4 ms | 36.2 ms: 1.03x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_sync | 20.3 ms | 20.0 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x | 714 ms | 704 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | sequential_1000 | 445 ms | 438 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | wide_dict_15x600_checkpoint | 52.6 ms | 51.9 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint | 693 ms | 683 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_checkpoint | 52.6 ms | 52.0 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_sync | 15.4 ms | 15.3 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | wide_dict_25x300_checkpoint_sync | 28.5 ms | 28.3 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_checkpoint | 32.7 ms | 32.5 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_checkpoint_sync | 28.6 ms | 28.4 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_checkpoint_sync | 37.2 ms | 37.0 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | wide_dict_15x600_checkpoint_sync | 47.0 ms | 46.7 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | pydantic_state_25x300_compilation | 388 us | 386 us: 1.00x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint_sync | 698 ms | 695 ms: 1.00x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_10x | 23.9 ms | 23.8 ms: 1.00x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_checkpoint | 42.1 ms | 41.9 ms: 1.00x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_compilation | 387 us | 386 us: 1.00x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_checkpoint | 24.9 ms | 24.9 ms: 1.00x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_checkpoint_sync | 47.1 ms | 47.1 ms: 1.00x faster | +---------------------------------------
Benchmark results: libs/langgraph/langgraph/graph/state.py#L0
........... WARNING: the benchmark result may be unstable * Not enough samples to get a stable result (95% certainly of less than 1% variation) Try to rerun the benchmark with more runs, values and/or loops. Run 'python3 -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: 30.2 ms +- 0.7 ms ........... WARNING: the benchmark result may be unstable * Not enough samples to get a stable result (95% certainly of less than 1% variation) Try to rerun the benchmark with more runs, values and/or loops. Run 'python3 -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: 35.0 ms +- 2.3 ms ........... WARNING: the benchmark result may be unstable * Not enough samples to get a stable result (95% certainly of less than 1% variation) Try to rerun the benchmark with more runs, values and/or loops. Run 'python3 -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_checkpoint: Mean +- std dev: 31.7 ms +- 0.5 ms ........... WARNING: the benchmark result may be unstable * Not enough samples to get a stable result (95% certainly of less than 1% variation) Try to rerun the benchmark with more runs, values and/or loops. Run 'python3 -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_checkpoint_sync: Mean +- std dev: 36.8 ms +- 1.3 ms ........... WARNING: the benchmark result may be unstable * Not enough samples to get a stable result (95% certainly of less than 1% variation) Try to rerun the benchmark with more runs, values and/or loops. Run 'python3 -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_100x: Mean +- std dev: 331 ms +- 31 ms ........... WARNING: the benchmark result may be unstable * Not enough samples to get a stable result (95% certainly of less than 1% variation) Try to rerun the benchmark with more runs, values and/or loops. Run 'python3 -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_100x_sync: Mean +- std dev: 344 ms +- 8 ms ........... WARNING: the benchmark result may be unstable * Not enough samples to get a stable result (95% certainly of less than 1% variation) Try to rerun the benchmark with more runs, values and/or loops. Run 'python3 -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_100x_checkpoint: Mean +- std dev: 340 ms +- 28 ms ........... WARNING: the benchmark result may be unstable * Not enough samples to get a stable result (95% certainly of less than 1% variation) Try to rerun the benchmark with more runs, values and/or loops. Run 'python3 -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_100x_checkpoint_sync: Mean +- std dev: 360 ms +- 9 ms ........... WARNING: the benchmark result may be unstable * Not enough samples to get a stable result (95% certainly of less than 1% variation) Try to rerun the benchmark with more runs, values and/or loops. Run 'python3 -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. react_agent_10x: Mean +- std dev: 23.8