
Security News
Feross on Risky Business Weekly Podcast: npm’s Ongoing Supply Chain Attacks
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
node-cdn-bench is a small CLI utility written with Node.js that allows for easy benchmarking of file downloads, specifically to test the differences between content delivery networks. It allows you to specify an interval, length of the test and outputs the results to a CSV file.
npm install cdn-bench
node cdn-bench \
--files [file1,file2,...] \
--interval [seconds between tests] \
--limit [number of iterations] \
--out [output filename]
The below command will download each listed file one at a time every 5 minutes for 24 hours.
node cdn-bench \
--files http://example.com/image.png,http://example.com/image2.png \
--interval 300 \
--limit 288 \
--out results.csv
If you are running these tests on a virtual machine, it is recommend to pair it with something like forever to turn the test into a daemon.
Copyright (c) 2014-2016 James Simpson and GoldFire Studios, Inc.
Released under the MIT License.
FAQs
CLI to benchmark the speeds of CDN files over time.
We found that cdn-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
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.