devtools - benchmarker - developer tool to measure javascript functions execution time
Install
With npm:
npm install devtools-benchmarker
With yarn:
yarn add devtools-benchmarker
Usage
const benchmarker = // Function to Testconst somefunction = { // Some Complex Things for let i = 0; i < 100; i++ for let j = 0; j < 100; j++ var someComplexCalc = Mathrandom * 1000 + Mathrandom * 1000 }// set precision of measured valuebenchmarker // Measure execution time of functionconsole
Result:
License
MIT