Skip to content

[kbn/optimizer] tweak split chunks options#80444

Merged
spalger merged 1 commit intoelastic:masterfrom
spalger:tweak-split-chunks-options
Oct 15, 2020
Merged

[kbn/optimizer] tweak split chunks options#80444
spalger merged 1 commit intoelastic:masterfrom
spalger:tweak-split-chunks-options

Conversation

@spalger
Copy link
Copy Markdown
Contributor

@spalger spalger commented Oct 14, 2020

The Security Solutions team is looking to reduce the size of their async chunks, and while inspecting the profiler output they determined that there are a number of seemingly duplicated dependencies in the async chunks, which we think might be caused by the default optimizations webpack uses for standard web-apps, especially where async chunks would normally be defined per route, but in our use-case these chunks are more per-app so we'd like to allow plugin authors to take more control over exactly how chunking happens by laying out their imports specifically (as long as this doesn't hurt bundle sizes of other plugins, we'll see).

@spalger spalger added release_note:skip Skip the PR/issue when compiling release notes Team:Operations Kibana-Operations Team v7.11.0 v8.0.0 labels Oct 14, 2020
@spalger spalger marked this pull request as ready for review October 14, 2020 03:32
@spalger spalger requested a review from a team as a code owner October 14, 2020 03:32
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@spalger
Copy link
Copy Markdown
Contributor Author

spalger commented Oct 15, 2020

Recording metric reports here:

minSize: 1

async chunk count

id before after diff
advancedSettings 3 2 -1
apm 12 14 +2
beatsManagement 3 2 -1
canvas 4 2 -2
console 2 1 -1
crossClusterReplication 2 1 -1
dashboard 2 1 -1
fileUpload 2 1 -1
graph 2 1 -1
grokdebugger 2 1 -1
home 2 1 -1
indexLifecycleManagement 2 1 -1
indexManagement 2 1 -1
indexPatternManagement 2 1 -1
infra 14 18 +4
ingestManager 7 5 -2
ingestPipelines 2 1 -1
kibanaReact 6 5 -1
lens 2 1 -1
licenseManagement 3 2 -1
logstash 2 1 -1
maps 2 1 -1
mapsLegacy 2 1 -1
ml 18 20 +2
monitoring 2 1 -1
observability 2 1 -1
regionMap 2 1 -1
remoteClusters 2 1 -1
rollup 2 1 -1
savedObjectsManagement 4 3 -1
searchprofiler 2 1 -1
security 19 27 +8
securitySolution 11 9 -2
tileMap 2 1 -1
timelion 2 1 -1
transform 2 1 -1
triggersActionsUi 34 41 +7
upgradeAssistant 2 1 -1
visDefaultEditor 2 1 -1
visTypeTable 3 2 -1
visTypeTagcloud 2 1 -1
visTypeTimeseries 2 1 -1
visTypeVega 5 4 -1
visTypeVislib 2 1 -1
visualize 2 1 -1
total -20

async chunks size

id before after diff
advancedSettings 892.1KB 891.9KB -114.0B
apm 4.1MB 3.3MB -908.4KB
beatsManagement 683.5KB 683.2KB -328.0B
canvas 1.4MB 1.4MB -842.0B
console 1.0MB 1.0MB -173.0B
crossClusterReplication 456.5KB 456.1KB -369.0B
dashboard 221.4KB 221.3KB -102.0B
data 274.4KB 268.3KB -6.1KB
discover 439.4KB 431.2KB -8.2KB
enterpriseSearch 661.8KB 629.4KB -32.5KB
fileUpload 574.9KB 574.6KB -342.0B
graph 1.3MB 1.3MB -421.0B
grokdebugger 568.8KB 568.4KB -347.0B
home 394.7KB 394.6KB -152.0B
indexLifecycleManagement 235.2KB 234.8KB -408.0B
indexManagement 1.6MB 1.6MB -509.0B
indexPatternManagement 662.3KB 662.1KB -163.0B
infra 3.8MB 3.5MB -301.1KB
ingestManager 1.2MB 1.2MB -866.0B
ingestPipelines 813.5KB 813.0KB -519.0B
kibanaReact 358.8KB 357.1KB -1.7KB
lens 1.0MB 1.0MB -696.0B
licenseManagement 167.5KB 167.1KB -357.0B
logstash 203.9KB 203.6KB -340.0B
maps 3.2MB 3.2MB +174.0B
mapsLegacy 731.2KB 731.5KB +285.0B
ml 11.3MB 10.3MB -1001.9KB
monitoring 1.1MB 1.1MB -592.0B
observability 167.0KB 166.6KB -424.0B
regionMap 264.6KB 264.5KB -102.0B
remoteClusters 227.8KB 227.5KB -378.0B
rollup 323.3KB 323.0KB -362.0B
savedObjectsManagement 206.9KB 206.7KB -173.0B
searchprofiler 695.1KB 694.7KB -399.0B
security 1.0MB 935.5KB -102.3KB
securitySolution 10.9MB 8.1MB -2.8MB
tileMap 273.9KB 273.8KB -98.0B
timelion 382.4KB 382.2KB -139.0B
transform 1.2MB 1.2MB -390.0B
triggersActionsUi 1.5MB 1.3MB -209.4KB
upgradeAssistant 179.8KB 179.4KB -371.0B
uptime 1.7MB 1.1MB -577.8KB
visDefaultEditor 400.2KB 400.0KB -160.0B
visTypeTable 70.6KB 70.5KB -144.0B
visTypeTagcloud 295.3KB 295.2KB -141.0B
visTypeTimeseries 1.8MB 1.8MB -142.0B
visTypeVega 1.4MB 1.4MB -106.0B
visTypeVislib 593.2KB 593.0KB -135.0B
visualize 264.2KB 264.0KB -214.0B
watcher 1.0MB 1.0MB -3.8KB
total -5.9MB

distributable file count

id before after diff
default 48496 48436 -60
oss 29211 29157 -54

page load bundle size

id before after diff
advancedSettings 12.3KB 12.2KB -65.0B
apm 48.3KB 48.6KB +277.0B
beatsManagement 169.1KB 169.0KB -40.0B
canvas 1014.7KB 1014.7KB -80.0B
console 30.4KB 30.4KB -40.0B
crossClusterReplication 49.2KB 49.2KB -40.0B
dashboard 344.4KB 344.3KB -40.0B
data 1.1MB 1.1MB +145.0B
discover 87.9KB 88.0KB +75.0B
enterpriseSearch 20.3KB 20.4KB +100.0B
fileUpload 9.5KB 9.5KB -40.0B
graph 16.3KB 16.2KB -40.0B
grokdebugger 11.5KB 11.5KB -40.0B
home 26.1KB 26.1KB -40.0B
indexLifecycleManagement 90.0KB 89.9KB -40.0B
indexManagement 122.8KB 122.8KB -40.0B
indexPatternManagement 136.4KB 136.4KB -40.0B
infra 178.7KB 179.2KB +530.0B
ingestManager 392.0KB 391.8KB -125.0B
ingestPipelines 42.0KB 42.0KB -40.0B
kibanaReact 133.9KB 133.9KB +25.0B
lens 79.8KB 79.4KB -360.0B
licenseManagement 26.2KB 26.1KB -40.0B
logstash 37.7KB 37.7KB -40.0B
maps 164.8KB 164.8KB -40.0B
mapsLegacy 99.4KB 99.4KB -40.0B
ml 65.7KB 65.9KB +245.0B
monitoring 247.7KB 247.6KB -40.0B
observability 73.0KB 72.9KB -40.0B
regionMap 49.9KB 49.9KB -40.0B
remoteClusters 35.5KB 35.4KB -40.0B
rollup 80.3KB 80.2KB -40.0B
searchprofiler 50.9KB 50.9KB -40.0B
security 172.1KB 172.8KB +749.0B
securitySolution 262.1KB 262.0KB -125.0B
tileMap 49.2KB 49.1KB -40.0B
timelion 14.6KB 14.5KB -40.0B
transform 25.5KB 25.4KB -40.0B
triggersActionsUi 151.6KB 153.1KB +1.5KB
upgradeAssistant 64.7KB 64.6KB -40.0B
uptime 25.3KB 25.4KB +100.0B
visDefaultEditor 34.4KB 34.4KB -40.0B
visTypeTable 20.2KB 20.1KB -40.0B
visTypeTagcloud 22.0KB 22.0KB -40.0B
visTypeTimeseries 136.9KB 136.9KB -40.0B
visTypeVega 135.3KB 135.3KB -75.0B
visTypeVislib 222.5KB 222.5KB -40.0B
visualize 41.4KB 41.3KB -40.0B
watcher 28.0KB 28.0KB +40.0B
total +1.7KB
minSize: 1_000

async chunk count

id before after diff
advancedSettings 3 2 -1
apm 12 14 +2
beatsManagement 3 2 -1
canvas 4 2 -2
console 2 1 -1
crossClusterReplication 2 1 -1
dashboard 2 1 -1
fileUpload 2 1 -1
graph 2 1 -1
grokdebugger 2 1 -1
home 2 1 -1
indexLifecycleManagement 2 1 -1
indexManagement 2 1 -1
indexPatternManagement 2 1 -1
infra 14 18 +4
ingestManager 7 5 -2
ingestPipelines 2 1 -1
kibanaReact 6 4 -2
lens 2 1 -1
licenseManagement 3 2 -1
logstash 2 1 -1
maps 2 1 -1
mapsLegacy 2 1 -1
ml 18 20 +2
monitoring 2 1 -1
observability 2 1 -1
regionMap 2 1 -1
remoteClusters 2 1 -1
rollup 2 1 -1
savedObjectsManagement 4 3 -1
searchprofiler 2 1 -1
security 19 27 +8
securitySolution 11 9 -2
tileMap 2 1 -1
timelion 2 1 -1
transform 2 1 -1
triggersActionsUi 34 40 +6
upgradeAssistant 2 1 -1
visDefaultEditor 2 1 -1
visTypeTable 3 2 -1
visTypeTagcloud 2 1 -1
visTypeTimeseries 2 1 -1
visTypeVega 5 4 -1
visTypeVislib 2 1 -1
visualize 2 1 -1
total -22

async chunks size

id before after diff
advancedSettings 892.1KB 891.9KB -114.0B
apm 4.1MB 3.3MB -908.4KB
beatsManagement 683.5KB 683.2KB -328.0B
canvas 1.4MB 1.4MB -842.0B
console 1.0MB 1.0MB -173.0B
crossClusterReplication 456.5KB 456.1KB -369.0B
dashboard 221.4KB 221.3KB -102.0B
data 274.4KB 268.3KB -6.1KB
discover 439.4KB 431.2KB -8.2KB
enterpriseSearch 661.8KB 629.4KB -32.5KB
fileUpload 574.9KB 574.6KB -342.0B
graph 1.3MB 1.3MB -421.0B
grokdebugger 568.8KB 568.4KB -347.0B
home 394.7KB 394.6KB -152.0B
indexLifecycleManagement 235.2KB 234.8KB -408.0B
indexManagement 1.6MB 1.6MB -509.0B
indexPatternManagement 662.3KB 662.1KB -163.0B
infra 3.8MB 3.5MB -301.1KB
ingestManager 1.2MB 1.2MB -866.0B
ingestPipelines 813.5KB 813.0KB -519.0B
kibanaReact 358.8KB 357.1KB -1.6KB
lens 1.0MB 1.0MB -696.0B
licenseManagement 167.5KB 167.1KB -357.0B
logstash 203.9KB 203.6KB -340.0B
maps 3.2MB 3.2MB +174.0B
mapsLegacy 731.2KB 731.5KB +285.0B
ml 11.3MB 10.3MB -1001.9KB
monitoring 1.1MB 1.1MB -592.0B
observability 167.0KB 166.6KB -424.0B
regionMap 264.6KB 264.5KB -102.0B
remoteClusters 227.8KB 227.5KB -378.0B
rollup 323.3KB 323.0KB -362.0B
savedObjectsManagement 206.9KB 206.7KB -173.0B
searchprofiler 695.1KB 694.7KB -399.0B
security 1.0MB 935.5KB -102.3KB
securitySolution 10.9MB 8.1MB -2.8MB
tileMap 273.9KB 273.8KB -98.0B
timelion 382.4KB 382.2KB -139.0B
transform 1.2MB 1.2MB -390.0B
triggersActionsUi 1.5MB 1.3MB -208.5KB
upgradeAssistant 179.8KB 179.4KB -371.0B
uptime 1.7MB 1.1MB -577.8KB
visDefaultEditor 400.2KB 400.0KB -160.0B
visTypeTable 70.6KB 70.5KB -144.0B
visTypeTagcloud 295.3KB 295.2KB -141.0B
visTypeTimeseries 1.8MB 1.8MB -142.0B
visTypeVega 1.4MB 1.4MB -106.0B
visTypeVislib 593.2KB 593.0KB -135.0B
visualize 264.2KB 264.0KB -214.0B
watcher 1.0MB 1.0MB -3.8KB
total -5.9MB

distributable file count

id before after diff
default 48195 48129 -66
oss 28633 28576 -57

page load bundle size

id before after diff
advancedSettings 12.3KB 12.2KB -65.0B
apm 48.3KB 48.6KB +277.0B
beatsManagement 169.1KB 169.0KB -40.0B
canvas 1014.7KB 1014.7KB -80.0B
console 30.4KB 30.4KB -40.0B
crossClusterReplication 49.2KB 49.2KB -40.0B
dashboard 344.4KB 344.3KB -40.0B
data 1.1MB 1.1MB +145.0B
discover 87.9KB 88.0KB +75.0B
enterpriseSearch 20.3KB 20.4KB +100.0B
fileUpload 9.5KB 9.5KB -40.0B
graph 16.3KB 16.2KB -40.0B
grokdebugger 11.5KB 11.5KB -40.0B
home 26.1KB 26.1KB -40.0B
indexLifecycleManagement 90.0KB 89.9KB -40.0B
indexManagement 122.8KB 122.8KB -40.0B
indexPatternManagement 136.4KB 136.4KB -40.0B
infra 178.7KB 179.2KB +530.0B
ingestManager 392.0KB 391.8KB -125.0B
ingestPipelines 42.0KB 42.0KB -40.0B
kibanaReact 133.9KB 133.8KB -40.0B
lens 79.8KB 79.4KB -360.0B
licenseManagement 26.2KB 26.1KB -40.0B
logstash 37.7KB 37.7KB -40.0B
maps 164.8KB 164.8KB -40.0B
mapsLegacy 99.4KB 99.4KB -40.0B
ml 65.7KB 65.9KB +245.0B
monitoring 247.7KB 247.6KB -40.0B
observability 73.0KB 72.9KB -40.0B
regionMap 49.9KB 49.9KB -40.0B
remoteClusters 35.5KB 35.4KB -40.0B
rollup 80.3KB 80.2KB -40.0B
searchprofiler 50.9KB 50.9KB -40.0B
security 172.1KB 172.8KB +749.0B
securitySolution 262.1KB 262.0KB -125.0B
tileMap 49.2KB 49.1KB -40.0B
timelion 14.6KB 14.5KB -40.0B
transform 25.5KB 25.4KB -40.0B
triggersActionsUi 151.6KB 153.0KB +1.5KB
upgradeAssistant 64.7KB 64.6KB -40.0B
uptime 25.3KB 25.4KB +100.0B
visDefaultEditor 34.4KB 34.4KB -40.0B
visTypeTable 20.2KB 20.1KB -40.0B
visTypeTagcloud 22.0KB 22.0KB -40.0B
visTypeTimeseries 136.9KB 136.9KB -40.0B
visTypeVega 135.3KB 135.3KB -75.0B
visTypeVislib 222.5KB 222.5KB -40.0B
visualize 41.4KB 41.3KB -40.0B
watcher 28.0KB 28.0KB +40.0B
total +1.6KB
minSize: 10_000

async chunk count

id before after diff
advancedSettings 3 2 -1
apm 12 11 -1
beatsManagement 3 2 -1
canvas 4 2 -2
console 2 1 -1
crossClusterReplication 2 1 -1
dashboard 2 1 -1
data 10 8 -2
discover 9 7 -2
fileUpload 2 1 -1
graph 2 1 -1
grokdebugger 2 1 -1
home 2 1 -1
indexLifecycleManagement 2 1 -1
indexManagement 2 1 -1
indexPatternManagement 2 1 -1
infra 14 17 +3
ingestManager 7 5 -2
ingestPipelines 2 1 -1
kibanaReact 6 3 -3
lens 2 1 -1
licenseManagement 3 2 -1
logstash 2 1 -1
maps 2 1 -1
mapsLegacy 2 1 -1
ml 18 20 +2
monitoring 2 1 -1
observability 2 1 -1
regionMap 2 1 -1
remoteClusters 2 1 -1
rollup 2 1 -1
savedObjectsManagement 4 3 -1
searchprofiler 2 1 -1
security 19 23 +4
securitySolution 11 8 -3
tileMap 2 1 -1
timelion 2 1 -1
transform 2 1 -1
triggersActionsUi 34 37 +3
upgradeAssistant 2 1 -1
uptime 12 11 -1
visDefaultEditor 2 1 -1
visTypeTable 3 2 -1
visTypeTagcloud 2 1 -1
visTypeTimeseries 2 1 -1
visTypeVega 5 4 -1
visTypeVislib 2 1 -1
visualize 2 1 -1
watcher 3 2 -1
total -41

async chunks size

id before after diff
advancedSettings 892.1KB 891.9KB -114.0B
apm 4.1MB 3.3MB -875.4KB
beatsManagement 683.5KB 683.2KB -328.0B
canvas 1.4MB 1.4MB -842.0B
console 1.0MB 1.0MB -173.0B
crossClusterReplication 456.5KB 456.1KB -369.0B
dashboard 221.4KB 221.3KB -102.0B
data 274.4KB 274.2KB -185.0B
discover 439.4KB 439.2KB -250.0B
enterpriseSearch 661.8KB 629.4KB -32.5KB
fileUpload 574.9KB 574.6KB -342.0B
graph 1.3MB 1.3MB -421.0B
grokdebugger 568.8KB 568.4KB -347.0B
home 394.7KB 394.6KB -152.0B
indexLifecycleManagement 235.2KB 234.8KB -408.0B
indexManagement 1.6MB 1.6MB -509.0B
indexPatternManagement 662.3KB 662.1KB -163.0B
infra 3.8MB 2.8MB -1.0MB
ingestManager 1.2MB 1.2MB -866.0B
ingestPipelines 813.5KB 813.0KB -519.0B
kibanaReact 358.8KB 358.3KB -449.0B
lens 1.0MB 1.0MB -696.0B
licenseManagement 167.5KB 167.1KB -357.0B
logstash 203.9KB 203.6KB -340.0B
maps 3.2MB 3.2MB +174.0B
mapsLegacy 731.2KB 731.5KB +285.0B
ml 11.3MB 7.5MB -3.8MB
monitoring 1.1MB 1.1MB -592.0B
observability 167.0KB 166.6KB -424.0B
regionMap 264.6KB 264.5KB -102.0B
remoteClusters 227.8KB 227.5KB -378.0B
rollup 323.3KB 323.0KB -362.0B
savedObjectsManagement 206.9KB 206.7KB -173.0B
searchprofiler 695.1KB 694.7KB -399.0B
security 1.0MB 955.2KB -82.6KB
securitySolution 10.9MB 8.1MB -2.8MB
tileMap 273.9KB 273.8KB -98.0B
timelion 382.4KB 382.2KB -139.0B
transform 1.2MB 1.2MB -390.0B
triggersActionsUi 1.5MB 1.4MB -146.3KB
upgradeAssistant 179.8KB 179.4KB -371.0B
uptime 1.7MB 1.1MB -575.2KB
visDefaultEditor 400.2KB 400.0KB -160.0B
visTypeTable 70.6KB 70.5KB -144.0B
visTypeTagcloud 295.3KB 295.2KB -141.0B
visTypeTimeseries 1.8MB 1.8MB -142.0B
visTypeVega 1.4MB 1.4MB -106.0B
visTypeVislib 593.2KB 593.0KB -135.0B
visualize 264.2KB 264.0KB -214.0B
watcher 1.0MB 1.0MB -404.0B
total -9.2MB

distributable file count

id before after diff
default 48195 48072 -123
oss 28633 28561 -72

page load bundle size

id before after diff
advancedSettings 12.3KB 12.2KB -65.0B
apm 48.3KB 48.3KB -26.0B
beatsManagement 169.1KB 169.0KB -40.0B
canvas 1014.7KB 1014.7KB -80.0B
console 30.4KB 30.4KB -40.0B
crossClusterReplication 49.2KB 49.2KB -40.0B
dashboard 344.4KB 344.3KB -40.0B
data 1.1MB 1.1MB -81.0B
discover 87.9KB 87.8KB -50.0B
enterpriseSearch 20.3KB 20.4KB +100.0B
fileUpload 9.5KB 9.5KB -40.0B
graph 16.3KB 16.2KB -40.0B
grokdebugger 11.5KB 11.5KB -40.0B
home 26.1KB 26.1KB -40.0B
indexLifecycleManagement 90.0KB 89.9KB -40.0B
indexManagement 122.8KB 122.8KB -40.0B
indexPatternManagement 136.4KB 136.4KB -40.0B
infra 178.7KB 179.0KB +354.0B
ingestManager 392.0KB 391.8KB -125.0B
ingestPipelines 42.0KB 42.0KB -40.0B
kibanaReact 133.9KB 133.8KB -120.0B
lens 79.8KB 79.4KB -360.0B
licenseManagement 26.2KB 26.1KB -40.0B
logstash 37.7KB 37.7KB -40.0B
maps 164.8KB 164.8KB -40.0B
mapsLegacy 99.4KB 99.4KB -40.0B
ml 65.7KB 65.8KB +153.0B
monitoring 247.7KB 247.6KB -40.0B
observability 73.0KB 72.9KB -40.0B
regionMap 49.9KB 49.9KB -40.0B
remoteClusters 35.5KB 35.4KB -40.0B
rollup 80.3KB 80.2KB -40.0B
searchprofiler 50.9KB 50.9KB -40.0B
security 172.1KB 172.4KB +364.0B
securitySolution 262.1KB 262.0KB -125.0B
tileMap 49.2KB 49.1KB -40.0B
timelion 14.6KB 14.5KB -40.0B
transform 25.5KB 25.4KB -40.0B
triggersActionsUi 151.6KB 152.3KB +765.0B
upgradeAssistant 64.7KB 64.6KB -40.0B
uptime 25.3KB 25.3KB +24.0B
visDefaultEditor 34.4KB 34.4KB -40.0B
visTypeTable 20.2KB 20.1KB -40.0B
visTypeTagcloud 22.0KB 22.0KB -40.0B
visTypeTimeseries 136.9KB 136.9KB -40.0B
visTypeVega 135.3KB 135.3KB -75.0B
visTypeVislib 222.5KB 222.5KB -40.0B
visualize 41.4KB 41.3KB -40.0B
watcher 28.0KB 28.0KB -40.0B
total -667.0B
minSize: 20_000

async chunk count

id before after diff
advancedSettings 3 2 -1
apm 12 11 -1
beatsManagement 3 2 -1
canvas 4 2 -2
console 2 1 -1
crossClusterReplication 2 1 -1
dashboard 2 1 -1
data 10 8 -2
discover 9 7 -2
enterpriseSearch 8 7 -1
fileUpload 2 1 -1
graph 2 1 -1
grokdebugger 2 1 -1
home 2 1 -1
indexLifecycleManagement 2 1 -1
indexManagement 2 1 -1
indexPatternManagement 2 1 -1
infra 14 17 +3
ingestManager 7 5 -2
ingestPipelines 2 1 -1
kibanaReact 6 3 -3
lens 2 1 -1
licenseManagement 3 2 -1
logstash 2 1 -1
maps 2 1 -1
mapsLegacy 2 1 -1
ml 18 19 +1
monitoring 2 1 -1
observability 2 1 -1
regionMap 2 1 -1
remoteClusters 2 1 -1
rollup 2 1 -1
savedObjectsManagement 4 3 -1
searchprofiler 2 1 -1
securitySolution 11 8 -3
tileMap 2 1 -1
timelion 2 1 -1
transform 2 1 -1
upgradeAssistant 2 1 -1
uptime 12 10 -2
visDefaultEditor 2 1 -1
visTypeTable 3 2 -1
visTypeTagcloud 2 1 -1
visTypeTimeseries 2 1 -1
visTypeVega 5 4 -1
visTypeVislib 2 1 -1
visualize 2 1 -1
watcher 3 2 -1
total -51

async chunks size

id before after diff
advancedSettings 892.1KB 891.9KB -114.0B
apm 4.1MB 3.3MB -875.4KB
beatsManagement 683.5KB 683.2KB -328.0B
canvas 1.4MB 1.4MB -842.0B
console 1.0MB 1.0MB -173.0B
crossClusterReplication 456.5KB 456.1KB -369.0B
dashboard 221.4KB 221.3KB -102.0B
data 274.4KB 274.2KB -185.0B
discover 439.4KB 439.2KB -250.0B
enterpriseSearch 661.8KB 638.4KB -23.5KB
fileUpload 574.9KB 574.6KB -342.0B
graph 1.3MB 1.3MB -421.0B
grokdebugger 568.8KB 568.4KB -347.0B
home 394.7KB 394.6KB -152.0B
indexLifecycleManagement 235.2KB 234.8KB -408.0B
indexManagement 1.6MB 1.6MB -509.0B
indexPatternManagement 662.3KB 662.1KB -163.0B
infra 3.8MB 2.8MB -1.0MB
ingestManager 1.2MB 1.2MB -866.0B
ingestPipelines 813.5KB 813.0KB -519.0B
kibanaReact 358.8KB 358.3KB -449.0B
lens 1.0MB 1.0MB -696.0B
licenseManagement 167.5KB 167.1KB -357.0B
logstash 203.9KB 203.6KB -340.0B
maps 3.2MB 3.2MB +174.0B
mapsLegacy 731.2KB 731.5KB +285.0B
ml 11.3MB 7.2MB -4.0MB
monitoring 1.1MB 1.1MB -592.0B
observability 167.0KB 166.6KB -424.0B
regionMap 264.6KB 264.5KB -102.0B
remoteClusters 227.8KB 227.5KB -378.0B
rollup 323.3KB 323.0KB -362.0B
savedObjectsManagement 206.9KB 206.7KB -173.0B
searchprofiler 695.1KB 694.7KB -399.0B
security 1.0MB 1011.0KB -26.8KB
securitySolution 10.9MB 8.1MB -2.8MB
tileMap 273.9KB 273.8KB -98.0B
timelion 382.4KB 382.2KB -139.0B
transform 1.2MB 1.2MB -390.0B
triggersActionsUi 1.5MB 1.5MB -47.5KB
upgradeAssistant 179.8KB 179.4KB -371.0B
uptime 1.7MB 1.1MB -560.8KB
visDefaultEditor 400.2KB 400.0KB -160.0B
visTypeTable 70.6KB 70.5KB -144.0B
visTypeTagcloud 295.3KB 295.2KB -141.0B
visTypeTimeseries 1.8MB 1.8MB -142.0B
visTypeVega 1.4MB 1.4MB -106.0B
visTypeVislib 593.2KB 593.0KB -135.0B
visualize 264.2KB 264.0KB -214.0B
watcher 1.0MB 1.0MB -404.0B
total -9.3MB

distributable file count

id before after diff
default 48196 48043 -153
oss 28633 28561 -72

page load bundle size

id before after diff
advancedSettings 12.3KB 12.2KB -65.0B
apm 48.3KB 48.3KB -26.0B
beatsManagement 169.1KB 169.0KB -40.0B
canvas 1014.7KB 1014.7KB -80.0B
console 30.4KB 30.4KB -40.0B
crossClusterReplication 49.2KB 49.2KB -40.0B
dashboard 344.4KB 344.3KB -40.0B
data 1.1MB 1.1MB -81.0B
discover 87.9KB 87.8KB -50.0B
enterpriseSearch 20.3KB 20.2KB -25.0B
fileUpload 9.5KB 9.5KB -40.0B
graph 16.3KB 16.2KB -40.0B
grokdebugger 11.5KB 11.5KB -40.0B
home 26.1KB 26.1KB -40.0B
indexLifecycleManagement 90.0KB 89.9KB -40.0B
indexManagement 122.8KB 122.8KB -40.0B
indexPatternManagement 136.4KB 136.4KB -40.0B
infra 178.7KB 179.0KB +354.0B
ingestManager 392.0KB 391.8KB -125.0B
ingestPipelines 42.0KB 42.0KB -40.0B
kibanaReact 133.9KB 133.8KB -120.0B
lens 79.8KB 79.4KB -360.0B
licenseManagement 26.2KB 26.1KB -40.0B
logstash 37.7KB 37.7KB -40.0B
maps 164.8KB 164.8KB -40.0B
mapsLegacy 99.4KB 99.4KB -40.0B
ml 65.7KB 65.8KB +153.0B
monitoring 247.7KB 247.6KB -40.0B
observability 73.0KB 72.9KB -40.0B
regionMap 49.9KB 49.9KB -40.0B
remoteClusters 35.5KB 35.4KB -40.0B
rollup 80.3KB 80.2KB -40.0B
searchprofiler 50.9KB 50.9KB -40.0B
security 172.1KB 172.1KB +65.0B
securitySolution 262.1KB 262.0KB -125.0B
tileMap 49.2KB 49.1KB -40.0B
timelion 14.6KB 14.5KB -40.0B
transform 25.5KB 25.4KB -40.0B
triggersActionsUi 151.6KB 151.7KB +150.0B
upgradeAssistant 64.7KB 64.6KB -40.0B
uptime 25.3KB 25.2KB -52.0B
visDefaultEditor 34.4KB 34.4KB -40.0B
visTypeTable 20.2KB 20.1KB -40.0B
visTypeTagcloud 22.0KB 22.0KB -40.0B
visTypeTimeseries 136.9KB 136.9KB -40.0B
visTypeVega 135.3KB 135.3KB -75.0B
visTypeVislib 222.5KB 222.5KB -40.0B
visualize 41.4KB 41.3KB -40.0B
watcher 28.0KB 28.0KB -40.0B
total -1.7KB

Alright, these results are pretty conclusive, the webpack team know what they're doing and we have no idea what minSize actually does, overall results are:

minSize chunk count chunk size page load size
1 -20 -5.9MB +1.7KB
1k -22 -5.9MB +1.6KB
10k -41 -9.2MB -667.0B
20k (default) -51 -9.3MB -1.7KB

@spalger spalger force-pushed the tweak-split-chunks-options branch 3 times, most recently from 862b89c to 203aaf7 Compare October 15, 2020 18:49
@spalger spalger force-pushed the tweak-split-chunks-options branch from 203aaf7 to 93058ef Compare October 15, 2020 19:43
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

async chunk count

id before after diff
advancedSettings 3 2 -1
apm 12 11 -1
beatsManagement 3 2 -1
canvas 4 2 -2
console 2 1 -1
crossClusterReplication 2 1 -1
dashboard 2 1 -1
data 11 8 -3
discover 9 7 -2
enterpriseSearch 8 7 -1
fileUpload 2 1 -1
graph 2 1 -1
grokdebugger 2 1 -1
home 2 1 -1
indexLifecycleManagement 2 1 -1
indexManagement 2 1 -1
indexPatternManagement 2 1 -1
infra 14 15 +1
ingestManager 7 5 -2
ingestPipelines 2 1 -1
kibanaReact 6 3 -3
lens 2 1 -1
licenseManagement 3 2 -1
logstash 2 1 -1
maps 2 1 -1
mapsLegacy 2 1 -1
ml 18 19 +1
monitoring 2 1 -1
observability 2 1 -1
regionMap 2 1 -1
remoteClusters 2 1 -1
rollup 2 1 -1
savedObjectsManagement 4 3 -1
searchprofiler 2 1 -1
security 19 18 -1
securitySolution 11 8 -3
tileMap 2 1 -1
timelion 2 1 -1
transform 2 1 -1
triggersActionsUi 34 32 -2
upgradeAssistant 2 1 -1
uptime 12 10 -2
visDefaultEditor 2 1 -1
visTypeTable 3 2 -1
visTypeTagcloud 2 1 -1
visTypeTimeseries 2 1 -1
visTypeVega 5 4 -1
visTypeVislib 2 1 -1
visualize 2 1 -1
watcher 3 2 -1
total -57

async chunks size

id before after diff
advancedSettings 892.1KB 891.9KB -114.0B
apm 4.1MB 3.3MB -875.4KB
beatsManagement 683.5KB 683.2KB -328.0B
canvas 1.4MB 1.4MB -842.0B
console 1.0MB 1.0MB -173.0B
crossClusterReplication 456.5KB 456.1KB -369.0B
dashboard 221.4KB 221.3KB -102.0B
data 289.2KB 286.8KB -2.3KB
discover 439.4KB 439.2KB -250.0B
enterpriseSearch 661.8KB 638.4KB -23.5KB
fileUpload 574.9KB 574.6KB -342.0B
graph 1.3MB 1.3MB -421.0B
grokdebugger 568.8KB 568.4KB -347.0B
home 394.7KB 394.6KB -152.0B
indexLifecycleManagement 235.2KB 234.8KB -408.0B
indexManagement 1.6MB 1.6MB -509.0B
indexPatternManagement 662.3KB 662.1KB -163.0B
infra 3.8MB 2.8MB -999.3KB
ingestManager 1.2MB 1.2MB -866.0B
ingestPipelines 813.5KB 813.0KB -519.0B
kibanaReact 358.8KB 358.3KB -449.0B
lens 1.0MB 1.0MB -696.0B
licenseManagement 167.5KB 167.1KB -357.0B
logstash 203.9KB 203.6KB -340.0B
maps 3.2MB 3.2MB +174.0B
mapsLegacy 731.2KB 731.5KB +285.0B
ml 11.3MB 7.2MB -4.0MB
monitoring 1.1MB 1.1MB -592.0B
observability 167.0KB 166.6KB -424.0B
regionMap 264.6KB 264.5KB -102.0B
remoteClusters 227.8KB 227.5KB -378.0B
rollup 323.3KB 323.0KB -362.0B
savedObjectsManagement 206.9KB 206.7KB -173.0B
searchprofiler 695.1KB 694.7KB -399.0B
security 1.0MB 1.0MB -6.8KB
securitySolution 10.9MB 8.1MB -2.8MB
tileMap 273.9KB 273.8KB -98.0B
timelion 382.4KB 382.2KB -139.0B
transform 1.2MB 1.2MB -390.0B
triggersActionsUi 1.5MB 1.5MB -6.6KB
upgradeAssistant 179.8KB 179.4KB -371.0B
uptime 1.7MB 1.1MB -560.8KB
visDefaultEditor 400.2KB 400.0KB -160.0B
visTypeTable 70.6KB 70.5KB -144.0B
visTypeTagcloud 295.3KB 295.2KB -141.0B
visTypeTimeseries 1.8MB 1.8MB -142.0B
visTypeVega 1.4MB 1.4MB -106.0B
visTypeVislib 593.2KB 593.0KB -135.0B
visualize 264.2KB 264.0KB -214.0B
watcher 1.0MB 1.0MB -404.0B
total -9.2MB

distributable file count

id before after diff
default 48199 48028 -171
oss 28636 28561 -75

page load bundle size

id before after diff
advancedSettings 12.3KB 12.2KB -65.0B
apm 48.3KB 48.3KB -26.0B
beatsManagement 169.1KB 169.0KB -40.0B
canvas 1014.7KB 1014.7KB -80.0B
console 30.4KB 30.4KB -40.0B
crossClusterReplication 49.2KB 49.2KB -40.0B
dashboard 344.4KB 344.3KB -40.0B
data 1.1MB 1.1MB -107.0B
discover 87.9KB 87.8KB -50.0B
enterpriseSearch 20.3KB 20.2KB -25.0B
fileUpload 9.5KB 9.5KB -40.0B
graph 16.3KB 16.2KB -40.0B
grokdebugger 11.5KB 11.5KB -40.0B
home 26.1KB 26.1KB -40.0B
indexLifecycleManagement 90.0KB 89.9KB -40.0B
indexManagement 122.8KB 122.8KB -40.0B
indexPatternManagement 136.4KB 136.4KB -40.0B
infra 178.7KB 178.8KB +151.0B
ingestManager 392.0KB 391.8KB -125.0B
ingestPipelines 42.0KB 42.0KB -40.0B
kibanaReact 133.9KB 133.8KB -120.0B
lens 79.8KB 79.4KB -360.0B
licenseManagement 26.2KB 26.1KB -40.0B
logstash 37.7KB 37.7KB -40.0B
maps 164.8KB 164.8KB -40.0B
mapsLegacy 99.4KB 99.4KB -40.0B
ml 65.7KB 65.8KB +153.0B
monitoring 247.7KB 247.6KB -40.0B
observability 73.0KB 72.9KB -40.0B
regionMap 49.9KB 49.9KB -40.0B
remoteClusters 35.5KB 35.4KB -40.0B
rollup 80.3KB 80.2KB -40.0B
searchprofiler 50.9KB 50.9KB -40.0B
security 172.1KB 172.0KB -41.0B
securitySolution 262.1KB 262.0KB -125.0B
tileMap 49.2KB 49.1KB -40.0B
timelion 14.6KB 14.5KB -40.0B
transform 25.5KB 25.4KB -40.0B
triggersActionsUi 151.6KB 151.4KB -179.0B
upgradeAssistant 64.7KB 64.6KB -40.0B
uptime 25.3KB 25.2KB -52.0B
visDefaultEditor 34.4KB 34.4KB -40.0B
visTypeTable 20.2KB 20.1KB -40.0B
visTypeTagcloud 22.0KB 22.0KB -40.0B
visTypeTimeseries 136.9KB 136.9KB -40.0B
visTypeVega 135.3KB 135.3KB -75.0B
visTypeVislib 222.5KB 222.5KB -40.0B
visualize 41.4KB 41.3KB -40.0B
watcher 28.0KB 28.0KB -40.0B
total -2.4KB

History

  • 💚 Build #82000 succeeded 203aaf786a06c130a1dd35116083cbedf87a561b
  • 💚 Build #81988 succeeded 862b89c5f90bf6abb554229f057f067184a1ed3e
  • 💔 Build #81971 failed 2fb9b38157e079138401488de3ec52c062d2e360
  • 💚 Build #81935 succeeded 52f64c712ed37367ce2a0fc66a3be73ba43c08d9
  • 💚 Build #81495 succeeded d88b53b5a4de2403982e17fe46390ffa2c8ab713

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@spalger spalger merged commit ff32bb1 into elastic:master Oct 15, 2020
@spalger spalger deleted the tweak-split-chunks-options branch October 15, 2020 21:24
spalger added a commit to spalger/kibana that referenced this pull request Oct 15, 2020
Co-authored-by: spalger <spalger@users.noreply.github.com>
spalger added a commit that referenced this pull request Oct 15, 2020
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
gmmorris added a commit to gmmorris/kibana that referenced this pull request Oct 16, 2020
* master: (115 commits)
  [ML] Transforms/DF Analytics: Fix data grid column sorting. (elastic#80618)
  added brace import to vis editor (elastic#80652)
  Fix error rate sorting in services list (elastic#80764)
  Emit info log when using custom registry URL (elastic#80768)
  [Reporting] Config Schema Validation for rules[N].protocol strings (elastic#80766)
  Add Storybook a11y addon (elastic#80069)
  Fix anomaly alert selection text (elastic#80746)
  [Security Solution] [Maps] Kibana index pattern, comma bug fix (elastic#80208)
  [kbn/optimizer] tweak split chunks options (elastic#80444)
  update template to use the new team label (elastic#80748)
  [Security Solution] Fix the Field dropdown in Timeline data providers resets when scrolled (elastic#80718)
  Adjusts observability alerting perms to require "all" (elastic#79896)
  [Security Solutions][Detection Engine] Fixes pre-packaged rules which contain exception lists to not overwrite user defined lists   (elastic#80592)
  [data.ui] Fix flaky test & lazy loading rendering artifacts. (elastic#80612)
  Licensed feature usage for connectors (elastic#77679)
  [Security Solution] Cypress template creation (elastic#80180)
  [APM] Hide service if only data is from ML (elastic#80145)
  Fix role mappings test for ESS (elastic#80604)
  [Maps] Add support for envelope (elastic#80614)
  [Security Solution] Update button text according to status (elastic#80389)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes Team:Operations Kibana-Operations Team v7.11.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants