@smashwilson/watcher-stress
v1.0.12
Published
Stress-test filesystem watchers
Downloads
16
Readme
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 [email protected]:smashwilson/watcher-stress.git
$ cd watcher-stress
$ npm install
$ script/watcher-stress --helpThe most recently dubbed "kind of stable I guess":
$ npm install -g @smashwilson/watcher-stress
$ watcher-stress --helpSuper fancy npx fun times:
$ npx @smashwilson/watcher-stress --helpUsage
To see the most up-to-date command-line usage:
$ watcher-stress --helpRun 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,/varRecord resource usage snapshots to a .json file as well:
$ watcher-stress --cli /etc --resource-log ${HOME}/watcher-usage.logStress-test nsfw by starting and stopping n watchers on random directories in serial:
$ watcher-stress --serial-watchers 5000Stress-test nsfw by starting n watchers in parallel:
$ watcher-stress --parallel-watchers 5000