• Benchmark the performance of a function, calling it a requested number of iterations.

    Parameters

    • func: Function

      The function to benchmark

    • iterations: number

      The number of iterations to test

    • Rest ...args: any[]

      Additional arguments passed to the benchmarked function

    Returns Promise<void>