@smashwilson/watcher-stress

1.0.12 • Public • Published

Stress-test a node.js filesystem watcher. Includes a CLI interface that can be used to monitor resource usage over extended periods of time.

Installing

The latest and greatest:

$ git clone git@github.com:smashwilson/watcher-stress.git
$ cd watcher-stress
$ npm install

$ script/watcher-stress --help

The most recently dubbed "kind of stable I guess":

$ npm install -g @smashwilson/watcher-stress

$ watcher-stress --help

Super fancy npx fun times:

$ npx @smashwilson/watcher-stress --help

Usage

To see the most up-to-date command-line usage:

$ watcher-stress --help

Run one or more watchers in a terminal. Report event batches and errors as they arrive and periodically emit resource usage (CPU time, RAM).

$ watcher-stress --cli /tmp,/var

Record resource usage snapshots to a .json file as well:

$ watcher-stress --cli /etc --resource-log ${HOME}/watcher-usage.log

Stress-test nsfw by starting and stopping n watchers on random directories in serial:

$ watcher-stress --serial-watchers 5000

Stress-test nsfw by starting n watchers in parallel:

$ watcher-stress --parallel-watchers 5000

Readme

Keywords

none

Package Sidebar

Install

npm i @smashwilson/watcher-stress

Weekly Downloads

0

Version

1.0.12

License

MIT

Unpacked Size

149 kB

Total Files

49

Last publish

Collaborators

  • smashwilson