Commit 36805ee
committed
docs(workbench): re-measure the cost that justifies one non-isolated worker
The comment named `await import("deepagents")`, a package 0e53709 removed from
the dependencies, at a line number that had also drifted. A comment that
justifies a configuration is how that configuration stays open to question — this
one had stopped being checkable.
The cost survived the package, because it was never that factory: `runChat`
dynamically imports `./deep-agent/service`, and the graph underneath it costs
~1.25 s per worker, measured by timing the import inside a `.wb.ts`. About 0.38 s
of that is `langchain` itself. Seven of the nineteen `.wb.ts` files reach that
path, so isolating them would re-pay it six more times.
The two module-Map line numbers are corrected as well, and the guard is credited
to the harness rather than to `runScenario`.1 parent e2e41c9 commit 36805ee
1 file changed
Lines changed: 17 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
31 | 34 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
37 | 45 | | |
38 | 46 | | |
39 | 47 | | |
| |||
0 commit comments