@exodus/test
    Preparing search index...
    • Runs a benchmark

      Type Parameters

      • A

      Parameters

      • name: string

        Name of the benchmark

      • options: { args?: any[]; skip?: boolean; timeout?: number } & { args: A[] }

        Benchmark options

        • Optionalargs?: any[]

          Array of arguments to pass to the benchmark function

        • Optionalskip?: boolean

          Skip this benchmark

        • Optionaltimeout?: number

          Timeout in milliseconds (default: 1000)

        • args: A[]
      • fn: (arg: A) => any

        Function to benchmark

      Returns Promise<void>

    • Runs a benchmark

      Parameters

      • name: string

        Name of the benchmark

      • options: { args?: any[]; skip?: boolean; timeout?: number } & { args?: undefined }

        Benchmark options

        • Optionalargs?: any[]

          Array of arguments to pass to the benchmark function

        • Optionalskip?: boolean

          Skip this benchmark

        • Optionaltimeout?: number

          Timeout in milliseconds (default: 1000)

        • Optionalargs?: undefined
      • fn: (arg: number) => any

        Function to benchmark

      Returns Promise<void>