feat(cli): add JS prebuild script #710
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/cli/langgraph_cli/config.py#L1
.........................................
fanout_to_subgraph_10x: Mean +- std dev: 50.6 ms +- 0.8 ms
.........................................
fanout_to_subgraph_10x_sync: Mean +- std dev: 44.1 ms +- 0.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: 85.8 ms +- 0.9 ms
.........................................
fanout_to_subgraph_100x: Mean +- std dev: 478 ms +- 10 ms
.........................................
fanout_to_subgraph_100x_sync: Mean +- std dev: 427 ms +- 5 ms
.........................................
fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 801 ms +- 46 ms
.........................................
fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 842 ms +- 17 ms
.........................................
react_agent_10x: Mean +- std dev: 31.2 ms +- 3.1 ms
.........................................
react_agent_10x_sync: Mean +- std dev: 22.5 ms +- 1.5 ms
.........................................
react_agent_10x_checkpoint: Mean +- std dev: 47.3 ms +- 3.3 ms
.........................................
react_agent_10x_checkpoint_sync: Mean +- std dev: 37.1 ms +- 3.0 ms
.........................................
react_agent_100x: Mean +- std dev: 321 ms +- 6 ms
.........................................
react_agent_100x_sync: Mean +- std dev: 256 ms +- 3 ms
.........................................
react_agent_100x_checkpoint: Mean +- std dev: 903 ms +- 8 ms
.........................................
react_agent_100x_checkpoint_sync: Mean +- std dev: 809 ms +- 6 ms
.........................................
wide_state_25x300: Mean +- std dev: 18.5 ms +- 0.4 ms
.........................................
wide_state_25x300_sync: Mean +- std dev: 10.9 ms +- 0.1 ms
.........................................
wide_state_25x300_checkpoint: Mean +- std dev: 279 ms +- 12 ms
.........................................
wide_state_25x300_checkpoint_sync: Mean +- std dev: 269 ms +- 13 ms
.........................................
wide_state_15x600: Mean +- std dev: 21.4 ms +- 0.4 ms
.........................................
wide_state_15x600_sync: Mean +- std dev: 12.5 ms +- 0.1 ms
.........................................
wide_state_15x600_checkpoint: Mean +- std dev: 479 ms +- 13 ms
.........................................
wide_state_15x600_checkpoint_sync: Mean +- std dev: 466 ms +- 14 ms
.........................................
wide_state_9x1200: Mean +- std dev: 21.4 ms +- 0.4 ms
.........................................
wide_state_9x1200_sync: Mean +- std dev: 12.5 ms +- 0.1 ms
.........................................
wide_state_9x1200_checkpoint: Mean +- std dev: 313 ms +- 12 ms
.........................................
wide_state_9x1200_checkpoint_sync: Mean +- std dev: 300 ms +- 13 ms
|
Comparison against main:
libs/cli/langgraph_cli/config.py#L1
+-----------------------------------------+---------+-----------------------+
| Benchmark | main | changes |
+=========================================+=========+=======================+
| react_agent_100x_sync | 252 ms | 256 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600_checkpoint_sync | 456 ms | 466 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint_sync | 789 ms | 809 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint | 881 ms | 903 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300_checkpoint | 272 ms | 279 ms: 1.03x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200_checkpoint | 305 ms | 313 ms: 1.03x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x | 312 ms | 321 ms: 1.03x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600_checkpoint | 464 ms | 479 ms: 1.03x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200_checkpoint_sync | 291 ms | 300 ms: 1.03x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300_checkpoint_sync | 260 ms | 269 ms: 1.03x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_checkpoint | 74.5 ms | 77.3 ms: 1.04x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600_sync | 12.1 ms | 12.5 ms: 1.04x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600 | 20.5 ms | 21.4 ms: 1.04x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200_sync | 12.0 ms | 12.5 ms: 1.05x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_10x_sync | 21.5 ms | 22.5 ms: 1.05x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200 | 20.4 ms | 21.4 ms: 1.05x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_sync | 407 ms | 427 ms: 1.05x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_10x | 29.7 ms | 31.2 ms: 1.05x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_sync | 41.9 ms | 44.1 ms: 1.05x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_10x_checkpoint | 44.9 ms | 47.3 ms: 1.05x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_10x_checkpoint_sync | 35.3 ms | 37.1 ms: 1.05x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_checkpoint_sync | 798 ms | 842 ms: 1.06x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300_sync | 10.3 ms | 10.9 ms: 1.06x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_checkpoint_sync | 81.0 ms | 85.8 ms: 1.06x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300 | 17.5 ms | 18.5 ms: 1.06x slower |
+---------------------------------------
|