Skip to content

npm/benchmarks

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
bin
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

benchmarks

Benchmark tooling for the npm cli

Options:

manager (alias -m)

Type: Array

Options: all, npm, yarn, pnpm ...

List of package managers to benchmark (must be npm installable strings)

fixture (alias -f)

Type: Array

Options: all, angular-quickstart, app-large, app-medium, ember-quickstart, eslint-config, mixcreant, react-app, tsconfig

List of fixtures to run the given benchmarks against

benchmark (alias -b)

Type: Array

Options: all, clean, lock-only, cache-only, modules-only, no-lock, no-cache, no-modules, no-clean

List of benchmarks to run

report (alias -r)

Type: Boolean

Generate a text report

graph (alias -g)

Type: Boolean

Generate a svg graph

Example usage:

./bin/benchmark.js -m all -b all -f app-large -g

Note: Graph generation pulled from pnpm/benchmarks-of-javascript-package-managers