Add SDK #269
Triggered via pull request
September 28, 2024 00:01
Status
Success
Total duration
44m 48s
Artifacts
–
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/sdk-py/langgraph_sdk/client.py#L1
.........................................
fanout_to_subgraph_10x: Mean +- std dev: 59.0 ms +- 1.0 ms
.........................................
WARNING: the benchmark result may be unstable
* the standard deviation (6.00 ms) is 11% 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.0 ms
.........................................
fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 77.3 ms +- 1.9 ms
.........................................
fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 81.2 ms +- 0.9 ms
.........................................
fanout_to_subgraph_100x: Mean +- std dev: 552 ms +- 10 ms
.........................................
fanout_to_subgraph_100x_sync: Mean +- std dev: 502 ms +- 5 ms
.........................................
fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 759 ms +- 22 ms
.........................................
fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 786 ms +- 6 ms
.........................................
react_agent_10x: Mean +- std dev: 41.4 ms +- 3.2 ms
.........................................
react_agent_10x_sync: Mean +- std dev: 29.7 ms +- 0.2 ms
.........................................
react_agent_10x_checkpoint: Mean +- std dev: 53.1 ms +- 1.4 ms
.........................................
react_agent_10x_checkpoint_sync: Mean +- std dev: 42.3 ms +- 3.0 ms
.........................................
react_agent_100x: Mean +- std dev: 413 ms +- 8 ms
.........................................
react_agent_100x_sync: Mean +- std dev: 332 ms +- 3 ms
.........................................
react_agent_100x_checkpoint: Mean +- std dev: 916 ms +- 12 ms
.........................................
react_agent_100x_checkpoint_sync: Mean +- std dev: 815 ms +- 10 ms
.........................................
wide_state_25x300: Mean +- std dev: 20.4 ms +- 0.3 ms
.........................................
wide_state_25x300_sync: Mean +- std dev: 12.7 ms +- 0.1 ms
.........................................
wide_state_25x300_checkpoint: Mean +- std dev: 238 ms +- 7 ms
.........................................
wide_state_25x300_checkpoint_sync: Mean +- std dev: 236 ms +- 14 ms
.........................................
wide_state_15x600: Mean +- std dev: 23.7 ms +- 0.4 ms
.........................................
wide_state_15x600_sync: Mean +- std dev: 14.7 ms +- 0.1 ms
.........................................
wide_state_15x600_checkpoint: Mean +- std dev: 414 ms +- 12 ms
.........................................
wide_state_15x600_checkpoint_sync: Mean +- std dev: 415 ms +- 17 ms
.........................................
wide_state_9x1200: Mean +- std dev: 23.7 ms +- 0.4 ms
.........................................
wide_state_9x1200_sync: Mean +- std dev: 14.7 ms +- 0.1 ms
.........................................
wide_state_9x1200_checkpoint: Mean +- std dev: 266 ms +- 8 ms
.........................................
wide_state_9x1200_checkpoint_sync: Mean +- std dev: 266 ms +- 14 ms
|
Comparison against main:
libs/sdk-py/langgraph_sdk/client.py#L1
+-----------------------------------------+---------+-----------------------+
| Benchmark | main | changes |
+=========================================+=========+=======================+
| fanout_to_subgraph_100x | 625 ms | 552 ms: 1.13x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_sync | 60.7 ms | 56.3 ms: 1.08x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_checkpoint | 791 ms | 759 ms: 1.04x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_sync | 522 ms | 502 ms: 1.04x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_checkpoint_sync | 84.3 ms | 81.2 ms: 1.04x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_checkpoint | 80.0 ms | 77.3 ms: 1.04x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x | 60.9 ms | 59.0 ms: 1.03x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_10x_checkpoint_sync | 43.3 ms | 42.3 ms: 1.02x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_10x_sync | 30.2 ms | 29.7 ms: 1.02x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200_checkpoint | 270 ms | 266 ms: 1.02x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300_checkpoint | 240 ms | 238 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint_sync | 823 ms | 815 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint | 922 ms | 916 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300_sync | 12.8 ms | 12.7 ms: 1.00x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_checkpoint_sync | 782 ms | 786 ms: 1.00x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x_sync | 330 ms | 332 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| Geometric mean | (ref) | 1.02x faster |
+-----------------------------------------+---------+-----------------------+
Benchmark hidden because not significant (12): react_agent_10x, react_agent_10x_checkpoint, wide_state_15x600_checkpoint_sync, react_agent_100x, wide_state_25x300, wide_state_15x600_checkpoint, wide_state_25x300_checkpoint_sync, wide_state_9x1200_checkpoint_sync, wide_state_15x600_sync, wide_state_9x1200_sync, wide_state_15x600, wide_state_9x1200
|