https://github.com/pine/yarn-npm-benchmark
:rocket: Benchmark for Node package managers
https://github.com/pine/yarn-npm-benchmark
Last synced: 4 months ago
JSON representation
:rocket: Benchmark for Node package managers
- Host: GitHub
- URL: https://github.com/pine/yarn-npm-benchmark
- Owner: pine
- Created: 2016-11-28T16:37:18.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-03-27T19:41:15.000Z (almost 7 years ago)
- Last Synced: 2025-10-13T22:13:50.474Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 53.7 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
`yarn` & `npm` Benchmark
------------------------
Benchmark for Node package managers
## Requirements
- Node v7 ~
- ndenv
- yarn
## Getting Started
### 1. Install target Node.js versions
See also `index.js`.
```
$ ndenv install 4.6.2
$ ndenv install 6.9.1
$ NDENV_VERSION=6.9.1 ndenv exec npm install -g yarn
```
### 2. Collect `package.json` files
See [package-json-collector](https://github.com/pine/package-json-collector).
- yarn-npm-benchmark
- packages <--- The directory for collected package.json files
- owner\_repo <--- GitHub repository owner & name
- package.json
- owner2\_repo2
- package.json
- ...
- package.json
- index.js
- result.csv <--- The generated result
### 3. Run benchmark
```
$ yarn
$ yarn start
```
### 4. See `result.csv`
## FAQ
### Are the npm or yarn caches effective ?
All caches are disabled.
```
# clean global cache
$ npm cache clean
$ yarn cache clean
# clean local cache
$ rm -rf node_modules
$ rm -rf yarn.lock
$ rm -rf npm-shrinkwrap.json
```
### What npm or yarn cli options are attached ?
It is enabled an only `--ignore-scripts` option.
## License
Public Domain