Skip to content

Conversation

@Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Nov 18, 2025

Description

The warning shown on metamaskbot comments abount bundle size can be misleading. It only considers the background bundle size (despite the UI being far more impactful for performance), and it's too sensitive to miniscule changes in bundle size that don't have any real impact.

The warning has been adjusted to consider significant changes in bundle size for UI or background, and to suppress any warning when the bundle size change is under one KB.

Open in GitHub Codespaces

Changelog

CHANGELOG entry: null

Related issues

N/A

Manual testing steps

N/A

Screenshots/Recordings

N/A

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@metamaskbot metamaskbot added the team-core-platform Core Platform team label Nov 18, 2025
@Gudahtt Gudahtt force-pushed the improve-bundle-size-message branch from 5fd029c to 75d24cb Compare November 18, 2025 22:15
@metamaskbot
Copy link
Collaborator

Builds ready [75d24cb]
UI Startup Metrics (1235 ± 100 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12351079170310012991385
load106390914859211331204
domContentLoaded105590314709011221184
domInteractive231483162066
firstPaint71680150342010771169
backgroundConnect23422036315236251
firstReactRender281995102847
getState2286192739
initialActions103112
loadScripts828677124990896956
setupStore1053341118
numNetworkReqs1367620671
BrowserifyPower User HomeuiStartup20991616351641122223516
load1055880172522512501725
domContentLoaded1034864170622512411706
domInteractive551817858117178
firstPaint72717717154379781715
backgroundConnect20418025016210250
firstReactRender75451372285137
getState23814542268266422
initialActions104124
loadScripts853687149221710601492
setupStore271253113653
numNetworkReqs1208318433159184
WebpackStandard HomeuiStartup7886581177908091017
load56250293273560746
domContentLoaded55549791669556732
domInteractive171160111449
firstPaint21653919220174736
backgroundConnect261263123155
firstReactRender3219290273540
getState1153251223
initialActions103111
loadScripts55249590868554724
setupStore1152641316
numNetworkReqs1467620873
WebpackPower User HomeuiStartup1042905158420211521584
load655565967123786967
domContentLoaded637555870103772870
domInteractive34121433858143
firstPaint30569874284634874
backgroundConnect4492256134225
firstReactRender41374524245
getState1339315020147150
initialActions101011
loadScripts633553861100761861
setupStore1263182431
numNetworkReqs77631292084129
FirefoxBrowserifyStandard HomeuiStartup15311356257117215481866
load12861154185311413031519
domContentLoaded12861153185211413031519
domInteractive53341983245132
firstPaint------
backgroundConnect4320237274669
firstReactRender28234342840
getState138194191223
initialActions203122
loadScripts12591134176810212831489
setupStore14878111341
numNetworkReqs1267316759
BrowserifyPower User HomeuiStartup31642501438950936354389
load15621301217429518752174
domContentLoaded15621301217429518742174
domInteractive23165653182298653
firstPaint------
backgroundConnect56111712383488121238
firstReactRender75511111994111
getState1629738562174385
initialActions317137
loadScripts14991261212429317412124
setupStore12838559153106559
numNetworkReqs1307824360223243
WebpackStandard HomeuiStartup16161418229818316232145
load13641197175812313741699
domContentLoaded13631197175812313741699
domInteractive54302533461116
firstPaint------
backgroundConnect48212213350138
firstReactRender3425144163280
getState147192201246
initialActions207123
loadScripts13311172170310713471589
setupStore176210241153
numNetworkReqs1367117765
WebpackPower User HomeuiStartup33712681427752339994277
load17001467214721019312147
domContentLoaded17001467214721019302147
domInteractive23564569167454569
firstPaint------
backgroundConnect47511510963248811096
firstReactRender885813723101137
getState17511341165179411
initialActions329239
loadScripts16481406210721819042107
setupStore1215145595136455
numNetworkReqs1267422953174229
📊 Page Load Benchmark Results

Current Commit: 75d24cb | Date: 11/18/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±39ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 724ms (±35ms) 🟢 | historical mean value: 726ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 76ms (±13ms) 🟢 | historical mean value: 77ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 39ms 1.00s 1.32s 1.08s 1.32s
domContentLoaded 724ms 35ms 696ms 976ms 761ms 976ms
firstPaint 76ms 13ms 60ms 188ms 84ms 188ms
firstContentfulPaint 76ms 13ms 60ms 188ms 84ms 188ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms

@Gudahtt Gudahtt force-pushed the improve-bundle-size-message branch from 75d24cb to e0eec9d Compare November 19, 2025 14:00
@metamaskbot
Copy link
Collaborator

Builds ready [e0eec9d]
UI Startup Metrics (1208 ± 87 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup1208105715318712561361
load103591013348110951160
domContentLoaded102890713288110911152
domInteractive2313100181976
firstPaint5299211903959851156
backgroundConnect20919432214211225
firstReactRender28195993248
getState31176273443
initialActions103112
loadScripts826684110681892951
setupStore1073241116
numNetworkReqs1367420673
BrowserifyPower User HomeuiStartup18631557258624720062410
load99786915861609951439
domContentLoaded98386315711589731431
domInteractive35162093729139
firstPaint5299515804039331384
backgroundConnect22019924610226240
firstReactRender80492312285107
getState17212936042191280
initialActions105112
loadScripts77866613561557681213
setupStore21961102936
numNetworkReqs986520132104185
WebpackStandard HomeuiStartup8577061267898811033
load60254894967609764
domContentLoaded59654292863604749
domInteractive181277131553
firstPaint18961933178186579
backgroundConnect261283172674
firstReactRender332073103854
getState20124462328
initialActions103111
loadScripts59354091962602741
setupStore1263341518
numNetworkReqs1367720871
WebpackPower User HomeuiStartup13921193228222515411885
load67958713371496691047
domContentLoaded65757412941416381010
domInteractive32131974220155
firstPaint3616612992956011005
backgroundConnect53171633785129
firstReactRender8044134138599
getState15711222520170201
initialActions102012
loadScripts65457112861396361001
setupStore19663143340
numNetworkReqs1246726450142235
FirefoxBrowserifyStandard HomeuiStartup12421088164712413181504
load104892412429011201224
domContentLoaded104792412419011161224
domInteractive57302253582133
firstPaint------
backgroundConnect3816155244192
firstReactRender22174752235
getState1063561324
initialActions102012
loadScripts102490912128210841188
setupStore1166481122
numNetworkReqs1267616758
BrowserifyPower User HomeuiStartup27922122372032929753559
load12391001177019112531691
domContentLoaded12381001177019112531691
domInteractive15235631140161552
firstPaint------
backgroundConnect279331054282487903
firstReactRender88371612098122
getState24992911245198864
initialActions218126
loadScripts1184981173417211881643
setupStore1001079515497628
numNetworkReqs96522084097198
WebpackStandard HomeuiStartup15311351194713615691832
load12931113161310913501524
domContentLoaded12921113161310913501523
domInteractive792823248101182
firstPaint------
backgroundConnect45221352249113
firstReactRender31228193142
getState13660101248
initialActions103122
loadScripts12631096153210213241469
setupStore16778151352
numNetworkReqs1367118767
WebpackPower User HomeuiStartup28122021380234329933480
load13621077184417914911701
domContentLoaded13611076184417914901700
domInteractive12729535122135462
firstPaint------
backgroundConnect16728872192180617
firstReactRender87401912195121
getState29086899282340874
initialActions3046627
loadScripts13301061181917814301672
setupStore1186788180107677
numNetworkReqs1006423943123201
📊 Page Load Benchmark Results

Current Commit: e0eec9d | Date: 11/19/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±49ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 727ms (±47ms) 🟢 | historical mean value: 722ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 79ms (±21ms) 🟢 | historical mean value: 78ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 49ms 1.02s 1.45s 1.07s 1.45s
domContentLoaded 727ms 47ms 706ms 1.13s 758ms 1.13s
firstPaint 79ms 21ms 60ms 284ms 84ms 284ms
firstContentfulPaint 79ms 21ms 60ms 284ms 84ms 284ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs
  • background: 53 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 20 Bytes (0%)

The warning shown on `metamaskbot` comments abount bundle size can be
misleading. It only considers the background bundle size (despite the
UI being far more impactful for performance), and it's too sensitive to
miniscule changes in bundle size that don't have any real impact.

The warning has been adjusted to consider significant changes in bundle
size for UI or background, and to suppress any warning when the bundle
size change is under one KB.
@Gudahtt Gudahtt force-pushed the improve-bundle-size-message branch 2 times, most recently from 5b2433f to 127cf1d Compare November 19, 2025 15:04
@metamaskbot
Copy link
Collaborator

Builds ready [127cf1d]
UI Startup Metrics (1230 ± 90 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup1230106615479012981385
load104990713258311121163
domContentLoaded104390213138211061156
domInteractive2414123212084
firstPaint48475132439010181126
backgroundConnect20919626111211242
firstReactRender25184662738
getState31175783547
initialActions103111
loadScripts840687108383905959
setupStore1173241122
numNetworkReqs1367419671
BrowserifyPower User HomeuiStartup18331518340430119802521
load96284120571909491432
domContentLoaded94783020441899281417
domInteractive35162364028140
firstPaint68417320533909041421
backgroundConnect20418324813210230
firstReactRender7743116138698
getState18013835141199279
initialActions104112
loadScripts75965118101837421221
setupStore19961112544
numNetworkReqs976620233105190
WebpackStandard HomeuiStartup8537041194908681024
load60554696482603813
domContentLoaded59854094979598797
domInteractive181167131556
firstPaint20159960214180772
backgroundConnect271176152871
firstReactRender32196393843
getState19123552327
initialActions104112
loadScripts59553894177595785
setupStore1263441417
numNetworkReqs1367619871
WebpackPower User HomeuiStartup13211149236921414321720
load6515671540148650992
domContentLoaded6335531390135619965
domInteractive30132704121114
firstPaint305591395310580970
backgroundConnect44102233464110
firstReactRender7443103128092
getState14611519116158176
initialActions102011
loadScripts6305511382133616956
setupStore17677162659
numNetworkReqs1156824147123225
FirefoxBrowserifyStandard HomeuiStartup12411078157510213051463
load105292813528111121217
domContentLoaded105192813528111121217
domInteractive62302323983136
firstPaint------
backgroundConnect3720117193986
firstReactRender22174462335
getState106608919
initialActions102112
loadScripts102791512787410791159
setupStore11510112926
numNetworkReqs1266314857
BrowserifyPower User HomeuiStartup26991914344831829203238
load1213977174018113181557
domContentLoaded1212976174018113181557
domInteractive14832610136169523
firstPaint------
backgroundConnect19218931200285652
firstReactRender87391372198130
getState27765907274205866
initialActions207227
loadScripts1168956172017712501531
setupStore1185787182102746
numNetworkReqs976223242108208
WebpackStandard HomeuiStartup14841292197313515291803
load12491119157610412971464
domContentLoaded12491119157010412971464
domInteractive69302334691137
firstPaint------
backgroundConnect3922126174473
firstReactRender312173103369
getState147161171144
initialActions103123
loadScripts1225110214929912781438
setupStore16795161350
numNetworkReqs1367018766
WebpackPower User HomeuiStartup29522222391237232113633
load14521168193919516171853
domContentLoaded14521168193919516161853
domInteractive15932760158171529
firstPaint------
backgroundConnect228311021222341725
firstReactRender914417522102128
getState28489934282210873
initialActions4164838
loadScripts14061147191318915431832
setupStore1166833175108647
numNetworkReqs1005723544115211
📊 Page Load Benchmark Results

Current Commit: 127cf1d | Date: 11/19/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.05s (±45ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 728ms (±41ms) 🟢 | historical mean value: 723ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 78ms (±12ms) 🟢 | historical mean value: 78ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.05s 45ms 1.02s 1.39s 1.07s 1.39s
domContentLoaded 728ms 41ms 707ms 1.03s 748ms 1.03s
firstPaint 78ms 12ms 60ms 176ms 84ms 176ms
firstContentfulPaint 78ms 12ms 60ms 176ms 84ms 176ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs
  • background: 53 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 20 Bytes (0%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants