Measure the memory footprint of node.js modules
Last updated 4 years ago by arvidkahl .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install memory-footprint -g
SYNC missed versions from official npm registry.


This tiny tool will scan a package.json file's dependencies, load them one by one and measure the memory footprint of loading them. It will garbage collect before every load and after unloading. These figures may be inaccurate, but for the big picture, it's enough.

As a binary

Run memory-footprint path/to/package.json or memory-footprint --file path/to/package.json.

Run locally

Run npm start path/to/package.json.

All options

--file path/to/package.json

  • Specify a file to load all dependencies from. The modules will be loaded from the node_modules folder in the directory the package.json file is located at.


  • Default: 25
  • Memory footprints will be taken every x milliseconds. This should take into account internal automatic garbage collection. Only increases in memory consumption will be collected.


  • Default: 5
  • Memory footprints will be taken x times in a row before the next module is loaded. Some modules load their dependencies lazily, so make sure to give them enough time so measurements take into account these deferred assets.


  • Default : 2
  • The whole list of modules will be unloaded and re-loaded x times. The module load order is randomized before every run. The more runs are executed, the more accurate the results will be.


  • Default : 1000
  • Betweens runs, the tool will wait x ms for garbage collection and the unloading to finish.

License: MIT

Current Tags

  • 0.2.0                                ...           latest (4 years ago)

6 Versions

  • 0.2.0                                ...           4 years ago
  • 0.1.4                                ...           4 years ago
  • 0.1.3                                ...           4 years ago
  • 0.1.2                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 6
Dependencies (5)
Dev Dependencies (0)
Dependents (0)

Copyright 2014 - 2016 © |