timeit-js
Simple Performance Measurement for Node.js
Measure the average execution time of a function. If you find any bugs or have suggestions feel free to help and fork the package.
Installation
npm i timeit-js
Import
const timeit =
Timeit Function
/** * Measure the average execution time of a function * @param * @param * @param * @returns */
Options
Parameter | Option | Default |
---|---|---|
e |
Number of function executions | 1000 |
r |
Number of test repetitions | 1 |
l |
Show timeit-result in logs | true |
d |
Number of decimals in Logging text | 6 |
Example
const timeit = { return ...arguments}