Code Monkey home page Code Monkey logo

tension-meter's Introduction

Tension Meter

Description

This project is designed to load test websites.

There are 3 different request mode:

  • iterative (it can either be infinite or bound by a duration or a count)
  • concurrent (using CPU, it is bound by a count)
  • asynchronous (using coroutines, it is bound by a count)

Installation

Just run:

$ pipenv install
Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.
Installing dependencies from Pipfile.lock (fa3efc)...
  ๐Ÿ   โ–‰โ–‰โ–‰โ–‰โ–‰โ–‰โ–‰โ–‰โ–‰โ–‰โ–‰โ–‰โ–‰โ–‰โ–‰โ–‰โ–‰โ–‰โ–‰โ–‰โ–‰โ–‰โ–‰โ–‰โ–‰โ–‰โ–‰โ–‰โ–‰โ–‰โ–‰โ–‰ 11/11 โ€” 00:00:02

Now, you are good to go ๐Ÿ˜„

Build a Docker image

From the repository root, run:

$ docker build .

Help

$ python run.py -h
usage: run.py [-h] [-P] [-G] [-Q] [-D] [-I] [-R] [-O] [-d DATA] [-p PARAMS] [-H [HEADERS [HEADERS ...]]] [-n COUNT] [-t TIME] [-b TEMPLATE] [-a] [-c] [-v] url

positional arguments:
  url                   Target url

optional arguments:
  -h, --help            show this help message and exit
  -P, --POST, --post
  -G, --GET, --get
  -Q, --PUT, --put
  -D, --DELETE, --delete
  -I, --HEAD, --head
  -R, --PATCH, --patch
  -O, --OPTIONS, --options
  -d DATA, --data DATA  Payload in JSON format
  -p PARAMS, --params PARAMS
                        Query parameters in JSON format
  -H [HEADERS [HEADERS ...]], --headers [HEADERS [HEADERS ...]]
                        Headers in JSON format
  -n COUNT, --count COUNT
                        The maximum amount of requests you want to perform (by default, infinity in sync mode, 1000 in async mode)
  -t TIME, --time TIME  The maximum time in seconds you want to be requesting (only in sync mode if no count was specified)
  -b TEMPLATE, --template TEMPLATE
                        TODO
  -a, --async           Shall the requests be performed asynchronously
  -c, --concurrent      Shall the requests be performed concurrently
  -v, --verbose         Shall you see the responses content

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.