This repo has the same project twice, once installed with Yarn 1 and once with Yarn 2 + the node-modules linker.
It was created to demonstrate a possible performance issue with v2 install times, see PR #1, but later, it was found out that the repo setup was flawed and the install times were fixed, see #2.
Install packages-v1
:
# Initial, slow installation with a cold cache
cd packages-v1
yarn
# Remove node_modules recursively
find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +
# Install again with warm cache
yarn
Then do the same in packages-v2
.
The times I'm seeing are:
packages-v1
: ~60 secondspackages-v2
: ~40 seconds
To test build after installing node_modules, you can run:
yarn build-everything