@kayahr/benchmark
    Preparing search index...

    Function benchmark

    • Benchmarks the given test operations.

      Parameters

      • tests: TestInit<unknown>[]

        Array with test definitions. Each entry needs a name string and an operation function. The operation function gets a single numeric argument which is incremented during each test run. The function should use this argument to generate a dynamic result which it must return to prevent the JS engine from discarding meaningless operations or optimizing static operations which would make the benchmark useless.

      • Optionaloptions: TestRunnerOptions

        Optional test runner options.

      Returns Promise<void>