Skip to content

Support read type hints from the method in add_node #478

Support read type hints from the method in add_node

Support read type hints from the method in add_node #478

Re-run triggered October 14, 2024 14:06
Status Success
Total duration 47m 36s
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/state.py#L1
......................................... fanout_to_subgraph_10x: Mean +- std dev: 49.0 ms +- 0.7 ms ......................................... fanout_to_subgraph_10x_sync: Mean +- std dev: 44.2 ms +- 0.7 ms ......................................... fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 71.2 ms +- 1.9 ms ......................................... fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 74.3 ms +- 0.9 ms ......................................... fanout_to_subgraph_100x: Mean +- std dev: 501 ms +- 12 ms ......................................... fanout_to_subgraph_100x_sync: Mean +- std dev: 428 ms +- 5 ms ......................................... fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 743 ms +- 27 ms ......................................... fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 711 ms +- 7 ms ......................................... react_agent_10x: Mean +- std dev: 28.5 ms +- 0.6 ms ......................................... react_agent_10x_sync: Mean +- std dev: 20.5 ms +- 0.2 ms ......................................... react_agent_10x_checkpoint: Mean +- std dev: 45.1 ms +- 4.3 ms ......................................... WARNING: the benchmark result may be unstable * the standard deviation (3.85 ms) is 11% of the mean (34.2 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. react_agent_10x_checkpoint_sync: Mean +- std dev: 34.2 ms +- 3.8 ms ......................................... react_agent_100x: Mean +- std dev: 314 ms +- 6 ms ......................................... react_agent_100x_sync: Mean +- std dev: 250 ms +- 3 ms ......................................... react_agent_100x_checkpoint: Mean +- std dev: 904 ms +- 16 ms ......................................... react_agent_100x_checkpoint_sync: Mean +- std dev: 808 ms +- 10 ms ......................................... wide_state_25x300: Mean +- std dev: 18.6 ms +- 0.4 ms ......................................... wide_state_25x300_sync: Mean +- std dev: 11.0 ms +- 0.2 ms ......................................... wide_state_25x300_checkpoint: Mean +- std dev: 242 ms +- 8 ms ......................................... wide_state_25x300_checkpoint_sync: Mean +- std dev: 243 ms +- 18 ms ......................................... wide_state_15x600: Mean +- std dev: 21.7 ms +- 0.3 ms ......................................... wide_state_15x600_sync: Mean +- std dev: 12.7 ms +- 0.2 ms ......................................... wide_state_15x600_checkpoint: Mean +- std dev: 416 ms +- 13 ms ......................................... wide_state_15x600_checkpoint_sync: Mean +- std dev: 418 ms +- 20 ms ......................................... wide_state_9x1200: Mean +- std dev: 21.6 ms +- 0.3 ms ......................................... wide_state_9x1200_sync: Mean +- std dev: 12.7 ms +- 0.1 ms ......................................... wide_state_9x1200_checkpoint: Mean +- std dev: 269 ms +- 8 ms ......................................... wide_state_9x1200_checkpoint_sync: Mean +- std dev: 270 ms +- 16 ms
Comparison against main: libs/langgraph/langgraph/graph/state.py#L1
+-----------------------------------------+---------+-----------------------+ | Benchmark | main | changes | +=========================================+=========+=======================+ | fanout_to_subgraph_10x_sync | 46.2 ms | 44.2 ms: 1.04x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint_sync | 77.3 ms | 74.3 ms: 1.04x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_sync | 252 ms | 250 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_sync | 12.6 ms | 12.7 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_sync | 20.4 ms | 20.5 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200 | 21.5 ms | 21.6 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300 | 18.4 ms | 18.6 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_sync | 12.6 ms | 12.7 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_checkpoint | 239 ms | 242 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_checkpoint | 410 ms | 416 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600 | 21.4 ms | 21.7 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x | 28.0 ms | 28.5 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_sync | 10.8 ms | 11.0 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint_sync | 698 ms | 711 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint_sync | 788 ms | 808 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x | 47.7 ms | 49.0 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_checkpoint_sync | 406 ms | 418 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint | 68.8 ms | 71.2 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint | 872 ms | 904 ms: 1.04x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_checkpoint_sync | 260 ms | 270 ms: 1.04x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_checkpoint_sync | 230 ms | 243 ms: 1.06x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x | 470 ms | 501 ms: 1.07x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_checkpoint | 41.6 ms | 45.1 ms: 1.09x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_checkpoint_sync | 31.0 ms | 34.2 ms: 1.10x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint | 668 ms | 743 ms: 1.11x slower | +---------------------------------------