Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Add size/disk usage benchmarks #13

Open
alexkreidler opened this issue Nov 5, 2017 · 3 comments
Open

Add size/disk usage benchmarks #13

alexkreidler opened this issue Nov 5, 2017 · 3 comments

Comments

@alexkreidler
Copy link

According to the website, one of the major features is pnpm's minimal disk usage. If it is possible, could you add sizes of the folders (with du -sh or something) to the benchmark, so we could see for ourselves?

@brycekahle
Copy link
Contributor

@zkochan
Copy link
Member

zkochan commented Nov 29, 2017

That's true, but the disk space efficiency of pnpm will be visible only if running pnpm install in several projects that use the same store. However, currently, we have a separate store for each benchmark

@luxlogica
Copy link

luxlogica commented Apr 7, 2020

This is particularly relevant now when comparing with Yarn 2 (issue #31). Yarn 2 compresses the installed packages by a lot, but we still get duplication - in order to support 'zero install', in Yarn 2 each project has its own cache folder with the compressed dependencies inside it.

Specially in large projects, this is likely to mean that over time, pnpm might still provide some advantage is saving disk space. But this does makes it more difficult to estimate it: you'd have to estimate how many times a package would have to be (re)installed in its compressed format by Yarn 2, compared to a single, uncompressed installation in the pnpm store.

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

No branches or pull requests

4 participants