Executes the test function the required number of times (or until the
test run exceeds the timeout interval, whichever comes first). Returns
an object containing the following:
{
'average': average execution time (ms)
'count': number of executions (may be fewer than expected due to timeout)
'maximum': longest execution time (ms)
'minimum': shortest execution time (ms)
'standardDeviation': sample standard deviation (ms)
'total': total execution time (ms)
}
Parameters | testFn | (Function|null) | | Test function whose performance is to
be measured.
|
|
---|
Returns | Object | Object containing performance stats.
|
|
---|