@marcosrv-ull/easybenchmarkjs

1.0.6

fastBench

The main functions of the module

fastBench
Author: Marcos Rodríguez Vega
Since: Feb 17 03 2022
Parameters
func (any)
input (any)
timeToBeExecute (any = 10)

fastBench

functions that return the time spend to execute a function

fastBench
Parameters
func (function) the function object that will be call
input (Array<object>) the input of that function whatever type
timeToBeExecute (number = 10) time to be execute to calculate then a mean, to avoid anomaly behaviour
Returns
array: the time elapse in milliseconds