Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

perf(webv2): re-record the browser baseline after merging main

Josh Corbett577ecf6d7b00
diff --git a/invokeai/frontend/webv2/performance/browser-baseline.json b/invokeai/frontend/webv2/performance/browser-baseline.json
index c2784109e8..94f407009e 100644
--- a/invokeai/frontend/webv2/performance/browser-baseline.json
+++ b/invokeai/frontend/webv2/performance/browser-baseline.json
@@ -1,6 +1,6 @@
{
- "browserExecutable": "/home/lstein/.cache/ms-playwright/chromium-1243/chrome-linux64/chrome",
- "capturedAt": "2026-09-25",
+ "browserExecutable": "/home/toast/.cache/ms-playwright/chromium-1243/chrome-linux64/chrome",
+ "capturedAt": "2026-09-26",
"routes": [
{
"activatedResourceBaseline": {
@@ -14,13 +14,13 @@
"scriptRequestCount": 0,
"totalRawBytes": 0
},
- "domContentLoadedMedianMs": 94.20000004768372,
+ "domContentLoadedMedianMs": 127.29999999981374,
"id": "launchpad",
"layoutAckMedianMs": 0,
"layoutReturnSwitchMedianMs": 0,
"layoutSwitchMedianMs": 0,
- "loadMedianMs": 94.30000001192093,
- "longestTaskMaxMs": 62,
+ "loadMedianMs": 127.5,
+ "longestTaskMaxMs": 83,
"owner": "app",
"projectSwitchMedianMs": 0,
"readyMark": "invokeai:ready:launchpad",
@@ -30,13 +30,13 @@
"fontRawBytes": 23664,
"imageRawBytes": 0,
"largestAssetRawBytes": 778953,
- "otherRawBytes": 169978,
+ "otherRawBytes": 173198,
"requestCount": 31,
- "scriptRawBytes": 1815741,
+ "scriptRawBytes": 1817020,
"scriptRequestCount": 27,
- "totalRawBytes": 2011542
+ "totalRawBytes": 2016041
},
- "routeReadyMedianMs": 209.20000004768372,
+ "routeReadyMedianMs": 273.20000000018626,
"scriptSourceOwnerSet": "launchpad-static",
"stateProfile": "empty"
},
@@ -52,13 +52,13 @@
"scriptRequestCount": 0,
"totalRawBytes": 0
},
- "domContentLoadedMedianMs": 98.10000002384186,
+ "domContentLoadedMedianMs": 127.0999999998603,
"id": "launchpad",
"layoutAckMedianMs": 0,
"layoutReturnSwitchMedianMs": 0,
"layoutSwitchMedianMs": 0,
- "loadMedianMs": 98.19999998807907,
- "longestTaskMaxMs": 65,
+ "loadMedianMs": 127.19999999995343,
+ "longestTaskMaxMs": 79,
"owner": "app",
"projectSwitchMedianMs": 0,
"readyMark": "invokeai:ready:launchpad",
@@ -68,13 +68,13 @@
"fontRawBytes": 23664,
"imageRawBytes": 0,
"largestAssetRawBytes": 778953,
- "otherRawBytes": 169978,
+ "otherRawBytes": 173198,
"requestCount": 31,
- "scriptRawBytes": 1815741,
+ "scriptRawBytes": 1817020,
"scriptRequestCount": 27,
- "totalRawBytes": 2011542
+ "totalRawBytes": 2016041
},
- "routeReadyMedianMs": 220,
+ "routeReadyMedianMs": 282.69999999995343,
"scriptSourceOwnerSet": "launchpad-static",
"stateProfile": "representative"
},
@@ -90,15 +90,15 @@
"scriptRequestCount": 0,
"totalRawBytes": 0
},
- "domContentLoadedMedianMs": 106.60000002384186,
+ "domContentLoadedMedianMs": 130.39999999990687,
"id": "editor-minimal",
"layoutAckMedianMs": 0,
"layoutReturnSwitchMedianMs": 0,
"layoutSwitchMedianMs": 0,
- "loadMedianMs": 106.80000001192093,
- "longestTaskMaxMs": 130,
+ "loadMedianMs": 130.5999999998603,
+ "longestTaskMaxMs": 158,
"owner": "workbench",
- "projectSwitchMedianMs": 32.5,
+ "projectSwitchMedianMs": 34.5,
"readyMark": "invokeai:ready:widget:center:preview",
"remediationTicket": "deepen-widget-registry-loading",
"resourceBaseline": {
@@ -106,13 +106,13 @@
"fontRawBytes": 23664,
"imageRawBytes": 156376,
"largestAssetRawBytes": 778953,
- "otherRawBytes": 169978,
+ "otherRawBytes": 173198,
"requestCount": 98,
- "scriptRawBytes": 3779849,
+ "scriptRawBytes": 3801383,
"scriptRequestCount": 93,
- "totalRawBytes": 4132026
+ "totalRawBytes": 4156780
},
- "routeReadyMedianMs": 345.30000001192093,
+ "routeReadyMedianMs": 434.19999999995343,
"scriptSourceOwnerSet": "editor-minimal-static",
"stateProfile": "empty"
},
@@ -128,15 +128,15 @@
"scriptRequestCount": 0,
"totalRawBytes": 0
},
- "domContentLoadedMedianMs": 99.59999996423721,
+ "domContentLoadedMedianMs": 128.19999999995343,
"id": "editor-minimal",
"layoutAckMedianMs": 0,
"layoutReturnSwitchMedianMs": 0,
"layoutSwitchMedianMs": 0,
- "loadMedianMs": 99.69999998807907,
- "longestTaskMaxMs": 128,
+ "loadMedianMs": 128.39999999990687,
+ "longestTaskMaxMs": 161,
"owner": "workbench",
- "projectSwitchMedianMs": 47.89999997615814,
+ "projectSwitchMedianMs": 47.60000000009313,
"readyMark": "invokeai:ready:widget:center:preview",
"remediationTicket": "deepen-widget-registry-loading",
"resourceBaseline": {
@@ -144,13 +144,13 @@
"fontRawBytes": 23664,
"imageRawBytes": 156376,
"largestAssetRawBytes": 778953,
- "otherRawBytes": 169978,
+ "otherRawBytes": 173198,
"requestCount": 98,
- "scriptRawBytes": 3779849,
+ "scriptRawBytes": 3801383,
"scriptRequestCount": 93,
- "totalRawBytes": 4132026
+ "totalRawBytes": 4156780
},
- "routeReadyMedianMs": 346.7999999523163,
+ "routeReadyMedianMs": 432.69999999995343,
"scriptSourceOwnerSet": "editor-minimal-static",
"stateProfile": "representative"
},
@@ -159,20 +159,20 @@
"cssRawBytes": 0,
"fontRawBytes": 0,
"imageRawBytes": 0,
- "largestAssetRawBytes": 309204,
+ "largestAssetRawBytes": 309188,
"otherRawBytes": 0,
"requestCount": 9,
- "scriptRawBytes": 503187,
+ "scriptRawBytes": 503239,
"scriptRequestCount": 9,
- "totalRawBytes": 503187
+ "totalRawBytes": 503239
},
- "domContentLoadedMedianMs": 96.80000001192093,
+ "domContentLoadedMedianMs": 126.9000000001397,
"id": "editor-canvas",
- "layoutAckMedianMs": 2.799999952316284,
- "layoutReturnSwitchMedianMs": 47,
- "layoutSwitchMedianMs": 69.89999997615814,
- "loadMedianMs": 97,
- "longestTaskMaxMs": 132,
+ "layoutAckMedianMs": 2.5,
+ "layoutReturnSwitchMedianMs": 46.0999999998603,
+ "layoutSwitchMedianMs": 84.19999999995343,
+ "loadMedianMs": 127,
+ "longestTaskMaxMs": 153,
"owner": "canvas",
"projectSwitchMedianMs": 0,
"readyMark": "invokeai:ready:widget:center:canvas",
@@ -182,13 +182,13 @@
"fontRawBytes": 23664,
"imageRawBytes": 156376,
"largestAssetRawBytes": 778953,
- "otherRawBytes": 169978,
+ "otherRawBytes": 173198,
"requestCount": 107,
- "scriptRawBytes": 4283036,
+ "scriptRawBytes": 4304622,
"scriptRequestCount": 102,
- "totalRawBytes": 4635213
+ "totalRawBytes": 4660019
},
- "routeReadyMedianMs": 1015.8999999761581,
+ "routeReadyMedianMs": 1126.8999999999069,
"scriptSourceOwnerSet": "editor-canvas-static",
"stateProfile": "empty"
},
@@ -197,20 +197,20 @@
"cssRawBytes": 0,
"fontRawBytes": 0,
"imageRawBytes": 0,
- "largestAssetRawBytes": 309204,
+ "largestAssetRawBytes": 309188,
"otherRawBytes": 0,
"requestCount": 9,
- "scriptRawBytes": 503187,
+ "scriptRawBytes": 503239,
"scriptRequestCount": 9,
- "totalRawBytes": 503187
+ "totalRawBytes": 503239
},
- "domContentLoadedMedianMs": 94.80000001192093,
+ "domContentLoadedMedianMs": 125,
"id": "editor-canvas",
- "layoutAckMedianMs": 2.5,
- "layoutReturnSwitchMedianMs": 44.19999998807907,
- "layoutSwitchMedianMs": 72.5,
- "loadMedianMs": 94.89999997615814,
- "longestTaskMaxMs": 145,
+ "layoutAckMedianMs": 2.800000000046566,
+ "layoutReturnSwitchMedianMs": 44.5,
+ "layoutSwitchMedianMs": 82.30000000004657,
+ "loadMedianMs": 125.0999999998603,
+ "longestTaskMaxMs": 193,
"owner": "canvas",
"projectSwitchMedianMs": 0,
"readyMark": "invokeai:ready:widget:center:canvas",
@@ -220,13 +220,13 @@
"fontRawBytes": 23664,
"imageRawBytes": 156376,
"largestAssetRawBytes": 778953,
- "otherRawBytes": 169978,
+ "otherRawBytes": 173198,
"requestCount": 107,
- "scriptRawBytes": 4283036,
+ "scriptRawBytes": 4304622,
"scriptRequestCount": 102,
- "totalRawBytes": 4635213
+ "totalRawBytes": 4660019
},
- "routeReadyMedianMs": 1012.6999999880791,
+ "routeReadyMedianMs": 1119,
"scriptSourceOwnerSet": "editor-canvas-static",
"stateProfile": "representative"
},
@@ -235,20 +235,20 @@
"cssRawBytes": 15413,
"fontRawBytes": 0,
"imageRawBytes": 0,
- "largestAssetRawBytes": 175033,
+ "largestAssetRawBytes": 178563,
"otherRawBytes": 0,
"requestCount": 7,
- "scriptRawBytes": 398110,
+ "scriptRawBytes": 411638,
"scriptRequestCount": 6,
- "totalRawBytes": 413523
+ "totalRawBytes": 427051
},
- "domContentLoadedMedianMs": 95.30000001192093,
+ "domContentLoadedMedianMs": 127.10000000009313,
"id": "editor-workflow",
- "layoutAckMedianMs": 2.199999988079071,
- "layoutReturnSwitchMedianMs": 28.900000035762787,
- "layoutSwitchMedianMs": 79.80000001192093,
- "loadMedianMs": 95.30000001192093,
- "longestTaskMaxMs": 131,
+ "layoutAckMedianMs": 2.6000000000931323,
+ "layoutReturnSwitchMedianMs": 33.199999999953434,
+ "layoutSwitchMedianMs": 98.30000000004657,
+ "loadMedianMs": 127.20000000018626,
+ "longestTaskMaxMs": 158,
"owner": "workflow",
"projectSwitchMedianMs": 0,
"readyMark": "invokeai:ready:widget:center:workflow",
@@ -258,13 +258,13 @@
"fontRawBytes": 23664,
"imageRawBytes": 156376,
"largestAssetRawBytes": 778953,
- "otherRawBytes": 169978,
+ "otherRawBytes": 173198,
"requestCount": 105,
- "scriptRawBytes": 4177959,
+ "scriptRawBytes": 4213021,
"scriptRequestCount": 99,
- "totalRawBytes": 4545549
+ "totalRawBytes": 4583831
},
- "routeReadyMedianMs": 1022.8999999761581,
+ "routeReadyMedianMs": 1131.8999999999069,
"scriptSourceOwnerSet": "editor-workflow-static",
"stateProfile": "empty"
},
@@ -273,20 +273,20 @@
"cssRawBytes": 15413,
"fontRawBytes": 0,
"imageRawBytes": 0,
- "largestAssetRawBytes": 175033,
+ "largestAssetRawBytes": 178563,
"otherRawBytes": 0,
"requestCount": 7,
- "scriptRawBytes": 398110,
+ "scriptRawBytes": 411638,
"scriptRequestCount": 6,
- "totalRawBytes": 413523
+ "totalRawBytes": 427051
},
- "domContentLoadedMedianMs": 101.90000003576279,
+ "domContentLoadedMedianMs": 127.89999999990687,
"id": "editor-workflow",
- "layoutAckMedianMs": 2.300000011920929,
- "layoutReturnSwitchMedianMs": 37.19999998807907,
- "layoutSwitchMedianMs": 111.10000002384186,
- "loadMedianMs": 102.10000002384186,
- "longestTaskMaxMs": 293,
+ "layoutAckMedianMs": 2.699999999953434,
+ "layoutReturnSwitchMedianMs": 39,
+ "layoutSwitchMedianMs": 135.89999999990687,
+ "loadMedianMs": 128,
+ "longestTaskMaxMs": 382,
"owner": "workflow",
"projectSwitchMedianMs": 0,
"readyMark": "invokeai:ready:widget:center:workflow",
@@ -296,13 +296,13 @@
"fontRawBytes": 23664,
"imageRawBytes": 156376,
"largestAssetRawBytes": 778953,
- "otherRawBytes": 169978,
+ "otherRawBytes": 173198,
"requestCount": 105,
- "scriptRawBytes": 4177959,
+ "scriptRawBytes": 4213021,
"scriptRequestCount": 99,
- "totalRawBytes": 4545549
+ "totalRawBytes": 4583831
},
- "routeReadyMedianMs": 1078.1000000238419,
+ "routeReadyMedianMs": 1178,
"scriptSourceOwnerSet": "editor-workflow-static",
"stateProfile": "representative"
},
@@ -318,13 +318,13 @@
"scriptRequestCount": 0,
"totalRawBytes": 0
},
- "domContentLoadedMedianMs": 98.90000003576279,
+ "domContentLoadedMedianMs": 125.60000000009313,
"id": "editor-gallery",
"layoutAckMedianMs": 0,
"layoutReturnSwitchMedianMs": 0,
- "layoutSwitchMedianMs": 35.39999997615814,
- "loadMedianMs": 99.10000002384186,
- "longestTaskMaxMs": 130,
+ "layoutSwitchMedianMs": 46.199999999953434,
+ "loadMedianMs": 125.69999999995343,
+ "longestTaskMaxMs": 155,
"owner": "gallery",
"projectSwitchMedianMs": 0,
"readyMark": "invokeai:ready:widget:center:gallery",
@@ -334,13 +334,13 @@
"fontRawBytes": 23664,
"imageRawBytes": 156376,
"largestAssetRawBytes": 778953,
- "otherRawBytes": 169978,
+ "otherRawBytes": 173198,
"requestCount": 98,
- "scriptRawBytes": 3779849,
+ "scriptRawBytes": 3801383,
"scriptRequestCount": 93,
- "totalRawBytes": 4132026
+ "totalRawBytes": 4156780
},
- "routeReadyMedianMs": 1248.5999999642372,
+ "routeReadyMedianMs": 1359.1000000000931,
"scriptSourceOwnerSet": "editor-minimal-static",
"stateProfile": "empty"
},
@@ -356,13 +356,13 @@
"scriptRequestCount": 0,
"totalRawBytes": 0
},
- "domContentLoadedMedianMs": 96.89999997615814,
+ "domContentLoadedMedianMs": 127.5,
"id": "editor-gallery",
"layoutAckMedianMs": 0,
"layoutReturnSwitchMedianMs": 0,
- "layoutSwitchMedianMs": 43.59999996423721,
- "loadMedianMs": 97,
- "longestTaskMaxMs": 136,
+ "layoutSwitchMedianMs": 52.699999999953434,
+ "loadMedianMs": 127.69999999995343,
+ "longestTaskMaxMs": 158,
"owner": "gallery",
"projectSwitchMedianMs": 0,
"readyMark": "invokeai:ready:widget:center:gallery",
@@ -372,13 +372,13 @@
"fontRawBytes": 23664,
"imageRawBytes": 156376,
"largestAssetRawBytes": 778953,
- "otherRawBytes": 169978,
+ "otherRawBytes": 173198,
"requestCount": 98,
- "scriptRawBytes": 3779849,
+ "scriptRawBytes": 3801383,
"scriptRequestCount": 93,
- "totalRawBytes": 4132026
+ "totalRawBytes": 4156780
},
- "routeReadyMedianMs": 1285.9000000357628,
+ "routeReadyMedianMs": 1343,
"scriptSourceOwnerSet": "editor-minimal-static",
"stateProfile": "representative"
}
@@ -1173,6 +1173,7 @@
"source:src/features/video/core/widgetValues.ts",
"source:src/features/video/index.ts",
"source:src/features/video/ui/VideoUiContext.tsx",
+ "source:src/features/workflow/core/batch.ts",
"source:src/features/workflow/core/buildGraph.ts",
"source:src/features/workflow/core/callSavedWorkflow.ts",
"source:src/features/workflow/core/connectors.ts",
@@ -2229,6 +2230,7 @@
"source:src/features/video/core/widgetValues.ts",
"source:src/features/video/index.ts",
"source:src/features/video/ui/VideoUiContext.tsx",
+ "source:src/features/workflow/core/batch.ts",
"source:src/features/workflow/core/buildGraph.ts",
"source:src/features/workflow/core/callSavedWorkflow.ts",
"source:src/features/workflow/core/connectors.ts",
@@ -3461,6 +3463,7 @@
"source:src/features/video/core/widgetValues.ts",
"source:src/features/video/index.ts",
"source:src/features/video/ui/VideoUiContext.tsx",
+ "source:src/features/workflow/core/batch.ts",
"source:src/features/workflow/core/buildGraph.ts",
"source:src/features/workflow/core/callSavedWorkflow.ts",
"source:src/features/workflow/core/connectors.ts",
diff --git a/invokeai/frontend/webv2/vite.config.mts b/invokeai/frontend/webv2/vite.config.mts
index 31052591d1..04f9bc7d49 100644
--- a/invokeai/frontend/webv2/vite.config.mts
+++ b/invokeai/frontend/webv2/vite.config.mts
@@ -89,6 +89,7 @@ const EDITOR_BOOT_SHARED_MODULES = [
'/features/generation/data/architectureCapabilitiesApi.ts',
'/features/generation/data/architectureCapabilitiesStore.ts',
'/features/generation/data/dynamicPromptsQueries.ts',
+ '/features/generation/data/promptTemplates.ts',
'/features/generation/data/promptUtilities.ts',
'/features/generation/data/systemPrompts.ts',
'/features/generation/prompts.ts',