Git Product home page Git Product logo

rate-limit-tester's Introduction

Progressive Rate-Limit Tester

Fork of theDanielJLewis/rate-limit-tester. I have replaced request-promise-native(deprecated) with axios and added the capability to make customize the request using config.js (follows same format as axios)

Test or discover the rate limit of any URL with this Node.js script! It will let you test a custom number of requsts per second (default) or per minute starting at an optional minimum to a the maximum, testing each limit for about a minute.

For example, if a URL is rate-limited to 2 requests per second, and you enter a minimum of 1 and maximum of 5, the test will step through as follows.

  • 1 request per second for about a minute
  • 2 requests per second for about a minute
  • Fail during a test sending 3 requests per second

Installation

You must have Node.js already installed.

git clone https://github.com/AbhishekBiswal/rate-limit-tester.git
cd rate-limit-tester
npm i

Usage

First edit the config.js file. The format is exactly the same as axios then run:

node index.js --max=[NUM] [OPTIONS]

Options

  --version   Show version number                                      [boolean]
  --max       Maximum requests to run per time                        [required]
  --min       Minimum requests to run per time
  -s          Set to requests to second [default]
  -m          Set to requests to minute
  -h, --help  Show help                                                [boolean]

rate-limit-tester's People

Contributors

abhishekbiswal avatar thedanieljlewis avatar

Stargazers

 avatar  avatar

Watchers

 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.