tinybench - v5.0.1
    Preparing search index...

    Type Alias Fn

    Fn: () => FnReturnedObject | Promise<FnReturnedObject | unknown> | unknown

    The task function.

    If you need to provide a custom duration for the task (e.g.: because you want to measure a specific part of its execution), you can return an object with a overriddenDuration field. You should still use bench.opts.now() to measure that duration.

    Type declaration