sdk-py: add versioning for assistants #151
Triggered via pull request
September 20, 2024 19:57
Status
Success
Total duration
45m 45s
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-js/src/client.ts#L1
.........................................
fanout_to_subgraph_10x: Mean +- std dev: 59.9 ms +- 1.4 ms
.........................................
WARNING: the benchmark result may be unstable
* the standard deviation (6.77 ms) is 12% of the mean (57.6 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: 57.6 ms +- 6.8 ms
.........................................
fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 78.3 ms +- 2.2 ms
.........................................
fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 82.6 ms +- 0.9 ms
.........................................
fanout_to_subgraph_100x: Mean +- std dev: 563 ms +- 10 ms
.........................................
fanout_to_subgraph_100x_sync: Mean +- std dev: 508 ms +- 5 ms
.........................................
fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 785 ms +- 30 ms
.........................................
fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 796 ms +- 9 ms
.........................................
react_agent_10x: Mean +- std dev: 39.3 ms +- 0.9 ms
.........................................
react_agent_10x_sync: Mean +- std dev: 29.8 ms +- 0.2 ms
.........................................
react_agent_10x_checkpoint: Mean +- std dev: 53.8 ms +- 1.4 ms
.........................................
react_agent_10x_checkpoint_sync: Mean +- std dev: 44.0 ms +- 4.0 ms
.........................................
react_agent_100x: Mean +- std dev: 420 ms +- 8 ms
.........................................
react_agent_100x_sync: Mean +- std dev: 347 ms +- 15 ms
.........................................
react_agent_100x_checkpoint: Mean +- std dev: 960 ms +- 26 ms
.........................................
react_agent_100x_checkpoint_sync: Mean +- std dev: 841 ms +- 13 ms
.........................................
wide_state_25x300: Mean +- std dev: 20.7 ms +- 0.5 ms
.........................................
wide_state_25x300_sync: Mean +- std dev: 12.8 ms +- 0.2 ms
.........................................
wide_state_25x300_checkpoint: Mean +- std dev: 240 ms +- 10 ms
.........................................
wide_state_25x300_checkpoint_sync: Mean +- std dev: 229 ms +- 7 ms
.........................................
wide_state_15x600: Mean +- std dev: 24.0 ms +- 0.4 ms
.........................................
wide_state_15x600_sync: Mean +- std dev: 14.8 ms +- 0.2 ms
.........................................
wide_state_15x600_checkpoint: Mean +- std dev: 417 ms +- 11 ms
.........................................
wide_state_15x600_checkpoint_sync: Mean +- std dev: 407 ms +- 13 ms
.........................................
wide_state_9x1200: Mean +- std dev: 23.9 ms +- 0.4 ms
.........................................
wide_state_9x1200_sync: Mean +- std dev: 14.8 ms +- 0.2 ms
.........................................
wide_state_9x1200_checkpoint: Mean +- std dev: 268 ms +- 9 ms
.........................................
wide_state_9x1200_checkpoint_sync: Mean +- std dev: 258 ms +- 8 ms
|
Comparison against main:
libs/sdk-js/src/client.ts#L1
+----------------------------------------+---------+-----------------------+
| Benchmark | main | changes |
+========================================+=========+=======================+
| fanout_to_subgraph_100x | 599 ms | 563 ms: 1.07x faster |
+----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_sync | 523 ms | 508 ms: 1.03x faster |
+----------------------------------------+---------+-----------------------+
| react_agent_10x_sync | 30.6 ms | 29.8 ms: 1.03x faster |
+----------------------------------------+---------+-----------------------+
| react_agent_10x | 40.0 ms | 39.3 ms: 1.02x faster |
+----------------------------------------+---------+-----------------------+
| wide_state_15x600 | 24.4 ms | 24.0 ms: 1.02x faster |
+----------------------------------------+---------+-----------------------+
| wide_state_9x1200_checkpoint | 272 ms | 268 ms: 1.02x faster |
+----------------------------------------+---------+-----------------------+
| wide_state_9x1200 | 24.2 ms | 23.9 ms: 1.01x faster |
+----------------------------------------+---------+-----------------------+
| react_agent_10x_checkpoint | 54.4 ms | 53.8 ms: 1.01x faster |
+----------------------------------------+---------+-----------------------+
| wide_state_15x600_sync | 14.9 ms | 14.8 ms: 1.01x faster |
+----------------------------------------+---------+-----------------------+
| wide_state_15x600_checkpoint_sync | 411 ms | 407 ms: 1.01x faster |
+----------------------------------------+---------+-----------------------+
| react_agent_100x | 424 ms | 420 ms: 1.01x faster |
+----------------------------------------+---------+-----------------------+
| wide_state_9x1200_checkpoint_sync | 260 ms | 258 ms: 1.01x faster |
+----------------------------------------+---------+-----------------------+
| wide_state_15x600_checkpoint | 420 ms | 417 ms: 1.01x faster |
+----------------------------------------+---------+-----------------------+
| wide_state_25x300_sync | 12.8 ms | 12.8 ms: 1.01x faster |
+----------------------------------------+---------+-----------------------+
| wide_state_9x1200_sync | 14.8 ms | 14.8 ms: 1.00x faster |
+----------------------------------------+---------+-----------------------+
| wide_state_25x300 | 20.6 ms | 20.7 ms: 1.01x slower |
+----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_checkpoint_sync | 81.9 ms | 82.6 ms: 1.01x slower |
+----------------------------------------+---------+-----------------------+
| react_agent_100x_sync | 343 ms | 347 ms: 1.01x slower |
+----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint_sync | 821 ms | 841 ms: 1.02x slower |
+----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint | 921 ms | 960 ms: 1.04x slower |
+----------------------------------------+---------+-----------------------+
| Geometric mean | (ref) | 1.01x faster |
+----------------------------------------+---------+-----------------------+
Benchmark hidden because not significant (8): react_agent_10x_checkpoint_sync, wide_state_25x300_checkpoint, wide_state_25x300_checkpoint_sync, fanout_to_subgraph_10x, fanout_to_subgraph_100x_checkpoint_sync, fanout_to_subgraph_100x_checkpoint, fanout_to_subgraph_10x_checkpoint, fanout_to_subgraph_10x_sync
|