Skip to content

feat(sdk): expose xray kwarg to get_graph/getGraph #246

feat(sdk): expose xray kwarg to get_graph/getGraph

feat(sdk): expose xray kwarg to get_graph/getGraph #246

Triggered via pull request September 27, 2024 14:43
@dqbddqbd
synchronize #1880
dqbd/sdk-xray
Status Success
Total duration 46m 56s
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/sdk-js/src/client.ts#L1
......................................... fanout_to_subgraph_10x: Mean +- std dev: 59.8 ms +- 1.3 ms ......................................... WARNING: the benchmark result may be unstable * the standard deviation (7.49 ms) is 13% of the mean (57.7 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.7 ms +- 7.5 ms ......................................... fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 77.3 ms +- 1.7 ms ......................................... fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 82.5 ms +- 0.7 ms ......................................... fanout_to_subgraph_100x: Mean +- std dev: 582 ms +- 13 ms ......................................... fanout_to_subgraph_100x_sync: Mean +- std dev: 508 ms +- 5 ms ......................................... fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 819 ms +- 34 ms ......................................... fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 799 ms +- 6 ms ......................................... react_agent_10x: Mean +- std dev: 42.4 ms +- 4.0 ms ......................................... react_agent_10x_sync: Mean +- std dev: 30.2 ms +- 0.3 ms ......................................... WARNING: the benchmark result may be unstable * the standard deviation (10.5 ms) is 18% of the mean (57.8 ms) * the maximum (122 ms) is 111% greater than the mean (57.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. react_agent_10x_checkpoint: Mean +- std dev: 57.8 ms +- 10.5 ms ......................................... react_agent_10x_checkpoint_sync: Mean +- std dev: 44.1 ms +- 4.0 ms ......................................... react_agent_100x: Mean +- std dev: 418 ms +- 7 ms ......................................... react_agent_100x_sync: Mean +- std dev: 334 ms +- 4 ms ......................................... react_agent_100x_checkpoint: Mean +- std dev: 983 ms +- 52 ms ......................................... react_agent_100x_checkpoint_sync: Mean +- std dev: 877 ms +- 39 ms ......................................... WARNING: the benchmark result may be unstable * the maximum (32.3 ms) is 52% greater than the mean (21.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. wide_state_25x300: Mean +- std dev: 21.2 ms +- 1.8 ms ......................................... wide_state_25x300_sync: Mean +- std dev: 13.2 ms +- 0.3 ms ......................................... wide_state_25x300_checkpoint: Mean +- std dev: 243 ms +- 8 ms ......................................... wide_state_25x300_checkpoint_sync: Mean +- std dev: 243 ms +- 19 ms ......................................... wide_state_15x600: Mean +- std dev: 24.4 ms +- 0.5 ms ......................................... wide_state_15x600_sync: Mean +- std dev: 15.3 ms +- 0.4 ms ......................................... wide_state_15x600_checkpoint: Mean +- std dev: 423 ms +- 12 ms ......................................... wide_state_15x600_checkpoint_sync: Mean +- std dev: 420 ms +- 22 ms ......................................... wide_state_9x1200: Mean +- std dev: 24.6 ms +- 0.6 ms ......................................... wide_state_9x1200_sync: Mean +- std dev: 15.2 ms +- 0.2 ms ......................................... wide_state_9x1200_checkpoint: Mean +- std dev: 271 ms +- 8 ms ......................................... wide_state_9x1200_checkpoint_sync: Mean +- std dev: 272 ms +- 17 ms
Comparison against main: libs/sdk-js/src/client.ts#L1
+-----------------------------------------+---------+-----------------------+ | Benchmark | main | changes | +=========================================+=========+=======================+ | wide_state_9x1200_checkpoint | 269 ms | 271 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint | 76.4 ms | 77.3 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_checkpoint | 418 ms | 423 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_sync | 502 ms | 508 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint_sync | 788 ms | 799 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_sync | 329 ms | 334 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_checkpoint | 239 ms | 243 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint_sync | 81.1 ms | 82.5 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_100x | 411 ms | 418 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_sync | 29.6 ms | 30.2 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_checkpoint_sync | 237 ms | 243 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_checkpoint_sync | 265 ms | 272 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_checkpoint_sync | 43.0 ms | 44.1 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x | 41.2 ms | 42.4 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_sync | 14.7 ms | 15.2 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_sync | 55.9 ms | 57.7 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_sync | 12.7 ms | 13.2 ms: 1.04x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_sync | 14.7 ms | 15.3 ms: 1.04x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600 | 23.5 ms | 24.4 ms: 1.04x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300 | 20.4 ms | 21.2 ms: 1.04x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200 | 23.5 ms | 24.6 ms: 1.04x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x | 549 ms | 582 ms: 1.06x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint | 922 ms | 983 ms: 1.07x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint_sync | 822 ms | 877 ms: 1.07x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_checkpoint | 53.0 ms | 57.8 ms: 1.09x slower | +---------------------------------------