Socket
Book a DemoInstallSign in
Socket

cdn-bench

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cdn-bench

CLI to benchmark the speeds of CDN files over time.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Description

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.

Installation

npm install cdn-bench

Usage

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.

License

Copyright (c) 2014-2016 James Simpson and GoldFire Studios, Inc.

Released under the MIT License.

Keywords

cdn

FAQs

Package last updated on 21 Jan 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.