Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stream-bench

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stream-bench - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

5

index.js

@@ -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 @@

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc