Skip to content

Illustrates module require time difference in pkg between npm and pnpm

Notifications You must be signed in to change notification settings

EinderJam/pkg-loading-time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pkg-loading-time

Illustrates module require time difference in pkg between npm and pnpm

Pre-requisites

  • npm
  • pnpm

How-to

src.js requires 2 modules, recording the time it takes to require them.

  • Run npm run pkg-npm to run the pkg'd version of src.js using npm to install the dependencies.
  • Run npm run pkg-pnpm to run the pkg'd version of src.js using pnpm to install the dependencies.

Results

Executables whose dependencies were installed with pnpm exhibit faster require times than those installed with npm. Example output:

$ npm run pkg-npm
aws-sdk required in 105ms
ssh2 required in 31ms

$ npm run pkg-pnpm
aws-sdk required in 122ms
ssh2 required in 511ms

About

Illustrates module require time difference in pkg between npm and pnpm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published