stream-bench
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -27,3 +27,4 @@ var Transform = require('stream').Transform | ||
metric: opts.metric || 'mbits', | ||
logReport: opts.logReport || false | ||
logReport: opts.logReport || false, | ||
dump: opts.dump || false | ||
} | ||
@@ -53,3 +54,3 @@ | ||
cb(null, chunk) | ||
this.data.dump ? cb(null, '') : cb(null, chunk) | ||
} | ||
@@ -56,0 +57,0 @@ |
{ | ||
"name": "stream-bench", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Node streams benchmarking (throughput, etc)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -36,6 +36,7 @@ | ||
* `interval`: How often to calculate throughput (in ms) | ||
* `rate`: In what metric to report (`bits`, `kbits`, `mbits`, `gbits`, `bytes`, `kbytes`, `mbytes`, `gbytes`) | ||
* `interval`: How often to calculate throughput (in ms). Default `1000` | ||
* `metric`: In what metric to report (`bits`, `kbits`, `mbits`, `gbits`, `bytes`, `kbytes`, `mbytes`, `gbytes`). Default `mbits` | ||
* `logReport`: Whether to log report to stdout. Default `false` | ||
* `dump`: Whether to dump data read from input stream. Useful when you won't pipe to another stream. Default `false` | ||
## TODO | ||
@@ -42,0 +43,0 @@ |
Possible typosquat attack
Supply chain riskThere is a package with a similar name that is downloaded much more often.
Did you mean |
---|
stream-each |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13310
126
45
1