apiperformance

1.0.3 • Public • Published

APIPerformance

Tool to streamline the performance study process on the indicated endpoints and optimize the calculation of the optimal delay for simple executions.

It has two functionalities, these are:

  • Optimum delay calculation
  • Total automated performance report

The commands to execute each functionality are the next:

  • Optimum delay: apiperformance -d <url> <param1> <param2> <iterationsToDelay>
  • Total performance report: apiperformance -t <url> <param1> <param2> <iterationsToDelay> <concurrentUsers> <problemsToGenerate> <multiplyProblem> <maxTime>

Install:

$ npm install apiperformance -g

or directly with npx:

$ npx apiperformance -d <url> <param1> <param2> <iterationsToDelay>
$ npx apiperformance -t <url> <param1> <param2> <iterationsToDelay> <concurrentUsers> <problemsToGenerate> <multiplyProblem> <maxTime>

Usage examples:

Optimum delay calculation

$ apiper -d http://knapsack-api.herokuapp.com/api/v1/stress/ 10000 100 5

Output: alt text

Total automated performance report

$ apiper -t http://knapsack-api.herokuapp.com/api/v1/stress/ 10000 100 3 4 2 2 300

Output: alt text alt text alt text alt text

/apiperformance/

    Package Sidebar

    Install

    npm i apiperformance

    Weekly Downloads

    4

    Version

    1.0.3

    License

    ISC

    Unpacked Size

    265 kB

    Total Files

    8

    Last publish

    Collaborators

    • sojer