GithubHelp home page GithubHelp logo

bhanditz / rocket-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from w3c/rocket

0.0 2.0 0.0 12 KB

Stress testing for Node.js using Socket.io :warning: Discontinued, not being maintained

JavaScript 100.00%

rocket-1's Introduction

rocket

rocket is a simple stress-testing API for Node.js applications, made with socket.io.

โš ๏ธ This project is discontinued, and not being actively maintained.

Installation

npm install -d

Usage

use the configuration file

To use rocket you have to configure the file named 'conf.json' in the lib repository like that:

  1. create an empty json object.

    {}
  2. add your target. i.e the url of the application to test with rocket. It could be a local url.

    {
    	"target": "http://example.com"
    }
  3. then, add client profiles tab.

    {
    	"target": "http://example.com",
    	"profiles": []
    }

this profile tab contain all kind of clients you need to simulate.

  1. create a client profile.

    {
    	"start": {
    		"event": "name_start_event", //name of the event which will start the application
    		"data": {} //data to sent with start event
    	},
    	"checkpoints": ["name_checkpoint1", "name_checkpoint2", ...], //checkpoints event received by the server side
    	"stop": "name_stop_event", //received event which will stop the client
    	"counter": 10 //number of clients
    }
  2. example config file

    {
    	"target": "http://example.com",
    	"profiles": [
    		//client profile
    		{
    		"start": {
    			"event": "name_start_event", //name of the event which will start the application
    			"data": {} //data to sent with start event
    		},
    		"checkpoints": ["name_checkpoint1", "name_checkpoint2", ...], //checkpoints event received by the server side
    		"stop": "name_stop_event", //received event which will stop the client
    		"counter": 10 //number of clients
    		},
    		//client profile
    		{
    		"start": {
    			"event": "name_start_event", //name of the event which will start the application
    			"data": {} //data to sent with start event
    		},
    		"checkpoints": ["name_checkpoint1", "name_checkpoint2", ...], //checkpoints event received by the server side
    		"stop": "name_stop_event", //received event which will stop the client
    		"counter": 5 //number of clients
    		}
    	]
    }
  3. run rocket

    node lib/rocket.js -f

use with commamd line arguments

not available yet.

License

Copyright (c) 2014 Guillaume Baudusseau MIT

Special thanks

I especially would like to thank deniak and tripu for helping me to find a wonderful name for a wonderful tool.

rocket-1's People

Contributors

gbaudusseau avatar guibbs avatar deniak avatar tripu avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.