lightbench
Easy code execution time checking.
Installation:
npm i lightbench
Connectivity:
const lightbench =
Usage
Synchronous code check:
func
- Function for testingcallback
- The function that will be called after the test function is completed. The argument will be passed the execution time in milliseconds.
Example:
const lightbench =
Synchronous code check:
func callback
func
- Function for testing. In the argument, a callback is sent, which must be executed after the asynchronous code is completed.callback
- The function that will be called after the test function is completed. The argument will be passed the execution time in milliseconds.
Example:
const lightbench = { } console