Options
All
  • Public
  • Public/Protected
  • All
Menu

kelonio

Index

Variables

benchmark: Benchmark = ...

Default Benchmark instance for shared usage throughout your tests. Each instance stores its own state from measurement results, so if you want to avoid global state, you can create additional instances as well.

Functions

  • Measure the time it takes for a function to execute.

    Parameters

    • fn: () => any

      Function to measure.

        • (): any
        • Returns any

    • options: Partial<MeasureOptions> = {}

      Options to customize the measurement.

    Returns Promise<Measurement>

Generated using TypeDoc