Skip to content

Wfh/scaling

Wfh/scaling #1160

Triggered via pull request December 6, 2024 18:06
Status Success
Total duration 47m 35s
Artifacts

bench.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

1 warning and 2 notices
benchmark
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Benchmark results: libs/checkpoint-postgres/langgraph/store/postgres/aio.py#L1
......................................... fanout_to_subgraph_10x: Mean +- std dev: 60.0 ms +- 1.2 ms ......................................... fanout_to_subgraph_10x_sync: Mean +- std dev: 51.0 ms +- 0.8 ms ......................................... fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 92.5 ms +- 9.0 ms ......................................... fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 94.1 ms +- 1.0 ms ......................................... fanout_to_subgraph_100x: Mean +- std dev: 609 ms +- 32 ms ......................................... fanout_to_subgraph_100x_sync: Mean +- std dev: 496 ms +- 5 ms ......................................... fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 963 ms +- 40 ms ......................................... fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 920 ms +- 20 ms ......................................... react_agent_10x: Mean +- std dev: 30.7 ms +- 0.6 ms ......................................... react_agent_10x_sync: Mean +- std dev: 22.4 ms +- 0.3 ms ......................................... react_agent_10x_checkpoint: Mean +- std dev: 46.7 ms +- 0.9 ms ......................................... react_agent_10x_checkpoint_sync: Mean +- std dev: 38.8 ms +- 3.7 ms ......................................... react_agent_100x: Mean +- std dev: 342 ms +- 6 ms ......................................... react_agent_100x_sync: Mean +- std dev: 273 ms +- 4 ms ......................................... react_agent_100x_checkpoint: Mean +- std dev: 951 ms +- 15 ms ......................................... react_agent_100x_checkpoint_sync: Mean +- std dev: 842 ms +- 13 ms ......................................... wide_state_25x300: Mean +- std dev: 23.2 ms +- 0.4 ms ......................................... WARNING: the benchmark result may be unstable * the standard deviation (1.96 ms) is 12% of the mean (15.8 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. wide_state_25x300_sync: Mean +- std dev: 15.8 ms +- 2.0 ms ......................................... wide_state_25x300_checkpoint: Mean +- std dev: 290 ms +- 17 ms ......................................... wide_state_25x300_checkpoint_sync: Mean +- std dev: 275 ms +- 16 ms ......................................... wide_state_15x600: Mean +- std dev: 27.1 ms +- 0.5 ms ......................................... wide_state_15x600_sync: Mean +- std dev: 16.6 ms +- 0.2 ms ......................................... wide_state_15x600_checkpoint: Mean +- std dev: 489 ms +- 16 ms ......................................... wide_state_15x600_checkpoint_sync: Mean +- std dev: 473 ms +- 15 ms ......................................... wide_state_9x1200: Mean +- std dev: 27.0 ms +- 0.5 ms ......................................... wide_state_9x1200_sync: Mean +- std dev: 16.5 ms +- 0.3 ms ......................................... wide_state_9x1200_checkpoint: Mean +- std dev: 322 ms +- 15 ms ......................................... wide_state_9x1200_checkpoint_sync: Mean +- std dev: 307 ms +- 15 ms
Comparison against main: libs/checkpoint-postgres/langgraph/store/postgres/aio.py#L1
+------------------------------------+---------+-----------------------+ | Benchmark | main | changes | +====================================+=========+=======================+ | react_agent_10x | 31.0 ms | 30.7 ms: 1.01x faster | +------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_sync | 494 ms | 496 ms: 1.01x slower | +------------------------------------+---------+-----------------------+ | react_agent_100x_sync | 271 ms | 273 ms: 1.01x slower | +------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint | 936 ms | 951 ms: 1.02x slower | +------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint | 941 ms | 963 ms: 1.02x slower | +------------------------------------+---------+-----------------------+ | Geometric mean | (ref) | 1.00x slower | +------------------------------------+---------+-----------------------+ Benchmark hidden because not significant (23): fanout_to_subgraph_100x, react_agent_10x_checkpoint_sync, fanout_to_subgraph_100x_checkpoint_sync, react_agent_100x, react_agent_100x_checkpoint_sync, react_agent_10x_sync, react_agent_10x_checkpoint, wide_state_15x600_checkpoint, wide_state_15x600, wide_state_25x300, wide_state_9x1200, wide_state_15x600_checkpoint_sync, wide_state_25x300_checkpoint_sync, wide_state_15x600_sync, fanout_to_subgraph_10x, fanout_to_subgraph_10x_checkpoint_sync, wide_state_9x1200_sync, fanout_to_subgraph_10x_sync, fanout_to_subgraph_10x_checkpoint, wide_state_9x1200_checkpoint_sync, wide_state_9x1200_checkpoint, wide_state_25x300_checkpoint, wide_state_25x300_sync