Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "benchmark/benchmark"

Index

Functions

benchmark

  • benchmark(fn: function, bytes?: number): Results

benchmarkAsync

  • benchmarkAsync(fn: function, doneCallback: function, bytes?: number): void
  • Parameters

    • fn: function
        • (done: function): any
        • Parameters

          • done: function
              • (): void
              • Returns void

          Returns any

    • doneCallback: function
    • Optional bytes: number

    Returns void

benchmarkPromise

  • benchmarkPromise(fn: function, bytes?: number): Promise<Results>

byteSeq

  • byteSeq(length: number, start?: number): Uint8Array
  • Returns a Uint8Array of the given length containing sequence of bytes 0, 1, 2 ... 255, 0, 1, 2, ...

    If the start byte is given, the sequence starts from it.

    Parameters

    • length: number
    • Default value start: number = 0

    Returns Uint8Array

report

  • report(name: string, results: Results): void

Generated using TypeDoc