![PyPI Slashes Malware Response Time: 90% of Issues Resolved in Under 24 Hours](https://cdn.sanity.io/images/cgdhsj6q/production/eee3e3fc69826f43dfc3366b71472d981003a5cb-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Slashes Malware Response Time: 90% of Issues Resolved in Under 24 Hours
PyPI has drastically improved its malware response times, resolving 90% of issues in under 24 hours and removing 900 projects since March 2024.
stream-bench
Advanced tools
Readme
Benchmark binary streams. Mostly a copy paste of benchmark/net-pipe
var streamBench = require('stream-bench')
, http = require('http')
, fs = require('fs')
http.get('http://nodejs.org/dist/latest/node-v0.8.19.tar.gz', function (res) {
var out = fs.createWriteStream('./out')
var bench = streamBench({
interval: 100,
metric: 'mbytes'
})
bench.on('rate', function (rate) {
console.log('rate: ', rate)
})
bench.once('report', function (report) {
console.log(report)
})
res.pipe(bench).pipe(out)
})
All the options are passed to the underlying stream, so lowWaterMark
, highWaterMark
,
bufferSize
, etc are all valid.
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
FAQs
Node streams benchmarking (throughput, etc)
The npm package stream-bench receives a total of 5 weekly downloads. As such, stream-bench popularity was classified as not popular.
We found that stream-bench demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI has drastically improved its malware response times, resolving 90% of issues in under 24 hours and removing 900 projects since March 2024.
Security News
Research
The Socket Research team breaks down an obfuscated script designed to facilitate unauthorized file uploads to multiple external services.
Security News
Node.js has automated its security release process, doubling the number of releases, and is re-evaluating unsupported experimental features with the Next 10 group to enhance security.