tinybench - v6.1.2
    Preparing search index...

    Type Alias Hook

    Hook: (task?: Task, mode?: HookMode) => Promise<void> | void

    The hook function signature. If warmup is enabled, the hook will be called twice, once for the warmup and once for the run.

    Type Declaration

      • (task?: Task, mode?: HookMode): Promise<void> | void
      • Parameters

        • Optionaltask: Task

          the task instance

        • Optionalmode: HookMode

          the mode where the hook is being called

        Returns Promise<void> | void