-
-
Notifications
You must be signed in to change notification settings - Fork 406
Improve the website build time #3160
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
base: main
Are you sure you want to change the base?
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit bb75be6:
|
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
BENCHMARKS
Disclaimer: taken from my shitty WSL 2 setup because I'm on my gaming machine and I can't be bothered to put Cyberpunk 2077 down and use my actual Linux or Mac machines for this lol.
Without cache: 537.53
With memory-only cache: 493.70
With cache: 333.22
Time to generate cache (from full): 338.63
Time to generate cache (from empty): 540.67
Instructions:
/usr/bin/time -f "%e" -o /tmp/result npm run build-websitethen:
prepend DISABLE_CODE_CACHE=true to disable disk cache (memory cache is still there)
to gen cache:
/usr/bin/time -f "%e" -o /tmp/result npm run build-website-code-cacheif you want to generate from empty, delete the website/.code-cache/data dir