-
Notifications
You must be signed in to change notification settings - Fork 27.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add env var to enable advanced webpack logging and profiling #23178
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sokra
requested review from
divmain,
ijjk,
lfades,
Timer and
timneutkens
as code owners
March 18, 2021 08:56
Stats from current PRDefault Server Mode (Decrease detected ✓)General Overall increase
|
vercel/next.js canary | vercel/next.js feature/webpack-logging | Change | |
---|---|---|---|
buildDuration | 10s | 11s | |
nodeModulesSize | 43.6 MB | 43.6 MB |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | vercel/next.js feature/webpack-logging | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 1.762 | 1.964 | |
/ avg req/sec | 1418.8 | 1273.03 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.008 | 1.161 | |
/error-in-render avg req/sec | 2480.21 | 2152.59 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | vercel/next.js feature/webpack-logging | Change | |
---|---|---|---|
677f882d2ed8..a2e7.js gzip | 13.4 kB | 13.4 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-HASH.js gzip | 7.14 kB | 7.14 kB | ✓ |
webpack-HASH.js gzip | 751 B | 751 B | ✓ |
Overall change | 60.3 kB | 60.3 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | vercel/next.js feature/webpack-logging | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 31.3 kB | 31.3 kB | ✓ |
Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
vercel/next.js canary | vercel/next.js feature/webpack-logging | Change | |
---|---|---|---|
_app-fde3324..9dd1.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-af59f..582f.js gzip | 3.46 kB | 3.46 kB | ✓ |
amp-9716187d..0aa8.js gzip | 536 B | 536 B | ✓ |
hooks-107e90..74c7.js gzip | 888 B | 888 B | ✓ |
index-ac435c..ecf2.js gzip | 227 B | 227 B | ✓ |
link-e6cee42..49eb.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..dc9d.js gzip | 303 B | 303 B | ✓ |
withRouter-6..0e02.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.64 kB | 8.64 kB | ✓ |
Client Build Manifests
vercel/next.js canary | vercel/next.js feature/webpack-logging | Change | |
---|---|---|---|
_buildManifest.js gzip | 346 B | 346 B | ✓ |
Overall change | 346 B | 346 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | vercel/next.js feature/webpack-logging | Change | |
---|---|---|---|
index.html gzip | 614 B | 614 B | ✓ |
link.html gzip | 622 B | 622 B | ✓ |
withRouter.html gzip | 609 B | 609 B | ✓ |
Overall change | 1.84 kB | 1.84 kB | ✓ |
Serverless Mode
General Overall increase ⚠️
vercel/next.js canary | vercel/next.js feature/webpack-logging | Change | |
---|---|---|---|
buildDuration | 12.3s | 12.6s | |
nodeModulesSize | 43.6 MB | 43.6 MB |
Client Bundles (main, webpack, commons)
vercel/next.js canary | vercel/next.js feature/webpack-logging | Change | |
---|---|---|---|
677f882d2ed8..a2e7.js gzip | 13.4 kB | 13.4 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-HASH.js gzip | 7.14 kB | 7.14 kB | ✓ |
webpack-HASH.js gzip | 751 B | 751 B | ✓ |
Overall change | 60.3 kB | 60.3 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | vercel/next.js feature/webpack-logging | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 31.3 kB | 31.3 kB | ✓ |
Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
vercel/next.js canary | vercel/next.js feature/webpack-logging | Change | |
---|---|---|---|
_app-fde3324..9dd1.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-af59f..582f.js gzip | 3.46 kB | 3.46 kB | ✓ |
amp-9716187d..0aa8.js gzip | 536 B | 536 B | ✓ |
hooks-107e90..74c7.js gzip | 888 B | 888 B | ✓ |
index-ac435c..ecf2.js gzip | 227 B | 227 B | ✓ |
link-e6cee42..49eb.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..dc9d.js gzip | 303 B | 303 B | ✓ |
withRouter-6..0e02.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.64 kB | 8.64 kB | ✓ |
Client Build Manifests
vercel/next.js canary | vercel/next.js feature/webpack-logging | Change | |
---|---|---|---|
_buildManifest.js gzip | 346 B | 346 B | ✓ |
Overall change | 346 B | 346 B | ✓ |
Serverless bundles
vercel/next.js canary | vercel/next.js feature/webpack-logging | Change | |
---|---|---|---|
_error.js | 1.02 MB | 1.02 MB | ✓ |
404.html | 2.67 kB | 2.67 kB | ✓ |
500.html | 2.65 kB | 2.65 kB | ✓ |
amp.amp.html | 10.6 kB | 10.6 kB | ✓ |
amp.html | 1.86 kB | 1.86 kB | ✓ |
hooks.html | 1.92 kB | 1.92 kB | ✓ |
index.js | 1.02 MB | 1.02 MB | ✓ |
link.js | 1.08 MB | 1.08 MB | ✓ |
routerDirect.js | 1.07 MB | 1.07 MB | ✓ |
withRouter.js | 1.07 MB | 1.07 MB | ✓ |
Overall change | 5.27 MB | 5.27 MB | ✓ |
Webpack 5 Mode (Decrease detected ✓)
General Overall increase ⚠️
vercel/next.js canary | vercel/next.js feature/webpack-logging | Change | |
---|---|---|---|
buildDuration | 12.3s | 13.1s | |
nodeModulesSize | 43.6 MB | 43.6 MB |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | vercel/next.js feature/webpack-logging | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 1.927 | 1.94 | |
/ avg req/sec | 1297.17 | 1288.43 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.151 | 1.175 | |
/error-in-render avg req/sec | 2171.69 | 2127.3 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | vercel/next.js feature/webpack-logging | Change | |
---|---|---|---|
597-12fee761..569d.js gzip | 13.3 kB | 13.3 kB | ✓ |
framework.HASH.js gzip | 39.3 kB | 39.3 kB | ✓ |
main-HASH.js gzip | 7.1 kB | 7.1 kB | ✓ |
webpack-HASH.js gzip | 993 B | 993 B | ✓ |
Overall change | 60.7 kB | 60.7 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | vercel/next.js feature/webpack-logging | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 31.1 kB | 31.1 kB | ✓ |
Overall change | 31.1 kB | 31.1 kB | ✓ |
Client Pages
vercel/next.js canary | vercel/next.js feature/webpack-logging | Change | |
---|---|---|---|
_app-d0eb668..79ef.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-d12ff..6063.js gzip | 3.4 kB | 3.4 kB | ✓ |
amp-127483e4..9cd8.js gzip | 560 B | 560 B | ✓ |
hooks-75994b..62d3.js gzip | 924 B | 924 B | ✓ |
index-ac1ee6..819e.js gzip | 243 B | 243 B | ✓ |
link-1cd4709..71e5.js gzip | 1.65 kB | 1.65 kB | ✓ |
routerDirect..4d90.js gzip | 333 B | 333 B | ✓ |
withRouter-0..60b0.js gzip | 329 B | 329 B | ✓ |
Overall change | 8.72 kB | 8.72 kB | ✓ |
Client Build Manifests
vercel/next.js canary | vercel/next.js feature/webpack-logging | Change | |
---|---|---|---|
_buildManifest.js gzip | 324 B | 324 B | ✓ |
Overall change | 324 B | 324 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | vercel/next.js feature/webpack-logging | Change | |
---|---|---|---|
index.html gzip | 587 B | 587 B | ✓ |
link.html gzip | 594 B | 594 B | ✓ |
withRouter.html gzip | 582 B | 582 B | ✓ |
Overall change | 1.76 kB | 1.76 kB | ✓ |
Diffs
Diff for index.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/",
"query": {},
- "buildId": "19cNAIC9aRhzrf67FRv0G",
+ "buildId": "L75_6V_1EWUP53HsXtMpB",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/19cNAIC9aRhzrf67FRv0G/_buildManifest.js"
+ src="/_next/static/L75_6V_1EWUP53HsXtMpB/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/19cNAIC9aRhzrf67FRv0G/_ssgManifest.js"
+ src="/_next/static/L75_6V_1EWUP53HsXtMpB/_ssgManifest.js"
async=""
></script>
</body>
Diff for link.html
@@ -48,7 +48,7 @@
"props": { "pageProps": {} },
"page": "/link",
"query": {},
- "buildId": "19cNAIC9aRhzrf67FRv0G",
+ "buildId": "L75_6V_1EWUP53HsXtMpB",
"isFallback": false,
"gip": true
}
@@ -82,11 +82,11 @@
async=""
></script>
<script
- src="/_next/static/19cNAIC9aRhzrf67FRv0G/_buildManifest.js"
+ src="/_next/static/L75_6V_1EWUP53HsXtMpB/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/19cNAIC9aRhzrf67FRv0G/_ssgManifest.js"
+ src="/_next/static/L75_6V_1EWUP53HsXtMpB/_ssgManifest.js"
async=""
></script>
</body>
Diff for withRouter.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/withRouter",
"query": {},
- "buildId": "19cNAIC9aRhzrf67FRv0G",
+ "buildId": "L75_6V_1EWUP53HsXtMpB",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/19cNAIC9aRhzrf67FRv0G/_buildManifest.js"
+ src="/_next/static/L75_6V_1EWUP53HsXtMpB/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/19cNAIC9aRhzrf67FRv0G/_ssgManifest.js"
+ src="/_next/static/L75_6V_1EWUP53HsXtMpB/_ssgManifest.js"
async=""
></script>
</body>
timneutkens
approved these changes
Mar 18, 2021
flybayer
pushed a commit
to blitz-js/next.js
that referenced
this pull request
Apr 29, 2021
…23178) This allows to use `__NEXT_WEBPACK_LOGGING` to enable verbose webpack logging output to investigate into performance and cache problems. `__NEXT_WEBPACK_LOGGING=1` enables some basic logging `__NEXT_WEBPACK_LOGGING=infrastructure` enables only infrastructure logging `__NEXT_WEBPACK_LOGGING=profile-client` enables deep profile output of the client build `__NEXT_WEBPACK_LOGGING=profile-server` same for the server `__NEXT_WEBPACK_LOGGING=profile-client,infrastructure` combines multiple things
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This allows to use
__NEXT_WEBPACK_LOGGING
to enable verbose webpack logging output to investigate into performance and cache problems.__NEXT_WEBPACK_LOGGING=1
enables some basic logging__NEXT_WEBPACK_LOGGING=infrastructure
enables only infrastructure logging__NEXT_WEBPACK_LOGGING=profile-client
enables deep profile output of the client build__NEXT_WEBPACK_LOGGING=profile-server
same for the server__NEXT_WEBPACK_LOGGING=profile-client,infrastructure
combines multiple things