Skip to content
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

Improve the website build time #3160

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

DaniGuardiola
Copy link
Contributor

@DaniGuardiola DaniGuardiola commented Dec 7, 2023

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-website

then:

cat /tmp/result

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-cache

if you want to generate from empty, delete the website/.code-cache/data dir

Copy link

changeset-bot bot commented Dec 7, 2023

⚠️ No Changeset found

Latest commit: bb75be6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Dec 7, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
ariakit ✅ Ready (Inspect) Visit Preview Dec 7, 2023 6:30pm
1 Ignored Deployment
Name Status Preview Updated (UTC)
reakit ⬜️ Ignored (Inspect) Visit Preview Dec 7, 2023 6:30pm

@DaniGuardiola DaniGuardiola marked this pull request as draft December 7, 2023 04:09
Copy link

codesandbox-ci bot commented Dec 7, 2023

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:

Sandbox Source
Ariakit Configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant