Socket
Socket
Sign inDemoInstall

cloud-benchmark

Package Overview
Dependencies
2
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cloud-benchmark

Small package for testing multiple cloud hosts at once.


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

cloud-benchmark

An npm package to easily benchmark cloud host providers.

Every day, more and more cloud hosts clutter the web.
This leaves the big question largely unanswered:
Which one is right for you?
Usually this answer falls heavily on which cloud host offers the best performance.
Testing takes time and precious development hours.
Cloud-benchmark is a simple to use npm package to help developers determine which cloud host is the fastest for their specific application. General benchmarks are helpful, but with cloud-benchmark, developers can quickly customize their very own benchmarks to test their node.js apps and all its quirks.

After all, nobody know your app better than you.

Follow the steps below to learn how to use cloud-benchmark.

1 Installation

Add cloud benchmark to your package.json file to maintain most uptodate version.

"cloud-benchmark" : "*"

2 Import package

var cb = require('cloud-benchmark');

3 Add clouds to test

After deploying your application on different cloud hosts, add the url of each host.

cb.insertCloud("http://ec2-54-186-73-1.us-west-2.compute.amazonaws.com");
cb.insertCloud("https://sleepy-shelf-49558.herokuapp.com/");

4 Add routes

Add the routes of your nodejs application that you'd like to test. For POST requests, add the parameters.

cb.addRoute("GET", "/");
cb.addRoute("POST", "/addTodo", todo);
cb.addRoute("POST", "/deleteTodo", todo);
cb.addRoute("GET", "/getTodos");

5 Specify interval of time to run tests

The test will run every x number of hours, and perform y tests. cb.interval(x,y)

cb.interval(6, 4);

So, in this example, the benchmark will run every 6 hours and will undergo 4 intervals.

6 Specify number of trials to run

cb.number_of_trials = 100;

7 Start benchmark

cb.startBenchmark();

8 Generate Report

Cloud-benchmark will automatically generate this for you once the benchmark is complete. Simply open report.js.

FAQs

Last updated on 10 May 2016

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc