Skip to content

Remove runtime value substitution #166

Remove runtime value substitution

Remove runtime value substitution #166

Triggered via pull request September 22, 2024 01:50
Status Success
Total duration 44m 48s
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/constants.py#L1
......................................... fanout_to_subgraph_10x: Mean +- std dev: 59.0 ms +- 1.3 ms ......................................... WARNING: the benchmark result may be unstable * the standard deviation (6.54 ms) is 12% of the mean (56.3 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: 56.3 ms +- 6.5 ms ......................................... fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 76.0 ms +- 1.0 ms ......................................... fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 81.0 ms +- 0.9 ms ......................................... fanout_to_subgraph_100x: Mean +- std dev: 550 ms +- 7 ms ......................................... fanout_to_subgraph_100x_sync: Mean +- std dev: 499 ms +- 5 ms ......................................... fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 759 ms +- 22 ms ......................................... fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 783 ms +- 5 ms ......................................... react_agent_10x: Mean +- std dev: 41.2 ms +- 3.2 ms ......................................... react_agent_10x_sync: Mean +- std dev: 29.7 ms +- 0.2 ms ......................................... react_agent_10x_checkpoint: Mean +- std dev: 52.9 ms +- 1.3 ms ......................................... react_agent_10x_checkpoint_sync: Mean +- std dev: 42.8 ms +- 3.2 ms ......................................... react_agent_100x: Mean +- std dev: 411 ms +- 7 ms ......................................... react_agent_100x_sync: Mean +- std dev: 330 ms +- 2 ms ......................................... react_agent_100x_checkpoint: Mean +- std dev: 917 ms +- 12 ms ......................................... react_agent_100x_checkpoint_sync: Mean +- std dev: 817 ms +- 8 ms ......................................... wide_state_25x300: Mean +- std dev: 20.3 ms +- 0.3 ms ......................................... wide_state_25x300_sync: Mean +- std dev: 12.7 ms +- 0.1 ms ......................................... wide_state_25x300_checkpoint: Mean +- std dev: 237 ms +- 7 ms ......................................... wide_state_25x300_checkpoint_sync: Mean +- std dev: 237 ms +- 14 ms ......................................... wide_state_15x600: Mean +- std dev: 23.4 ms +- 0.4 ms ......................................... wide_state_15x600_sync: Mean +- std dev: 14.6 ms +- 0.1 ms ......................................... wide_state_15x600_checkpoint: Mean +- std dev: 414 ms +- 11 ms ......................................... wide_state_15x600_checkpoint_sync: Mean +- std dev: 417 ms +- 17 ms ......................................... wide_state_9x1200: Mean +- std dev: 23.5 ms +- 0.3 ms ......................................... wide_state_9x1200_sync: Mean +- std dev: 14.6 ms +- 0.2 ms ......................................... wide_state_9x1200_checkpoint: Mean +- std dev: 268 ms +- 10 ms ......................................... wide_state_9x1200_checkpoint_sync: Mean +- std dev: 266 ms +- 15 ms
Comparison against main: libs/langgraph/langgraph/constants.py#L1
+-----------------------------------------+---------+-----------------------+ | Benchmark | main | changes | +=========================================+=========+=======================+ | fanout_to_subgraph_10x_sync | 59.3 ms | 56.3 ms: 1.05x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint | 79.5 ms | 76.0 ms: 1.05x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_sync | 343 ms | 330 ms: 1.04x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint_sync | 84.1 ms | 81.0 ms: 1.04x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600 | 24.1 ms | 23.4 ms: 1.03x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_checkpoint | 426 ms | 414 ms: 1.03x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200 | 24.1 ms | 23.5 ms: 1.03x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300 | 20.8 ms | 20.3 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_checkpoint | 243 ms | 237 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint_sync | 801 ms | 783 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_checkpoint | 274 ms | 268 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x | 419 ms | 411 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_sync | 508 ms | 499 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_sync | 14.9 ms | 14.6 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x | 59.8 ms | 59.0 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint_sync | 827 ms | 817 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_sync | 30.0 ms | 29.7 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint | 767 ms | 759 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint | 926 ms | 917 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_sync | 12.8 ms | 12.7 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_checkpoint | 53.3 ms | 52.9 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x | 554 ms | 550 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_sync | 14.7 ms | 14.6 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_checkpoint_sync | 234 ms | 237 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x | 39.6 ms | 41.2 ms: 1.04x slower | +---------------------------------------