1.0.0 • Published 4 years ago

@sojer23/apiperformance v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

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