tinybench - v5.0.1
    Preparing search index...

    Interface FnReturnedObject

    A possible object returned by task functions to override default behaviors, like the duration of the function itself.

    interface FnReturnedObject {
        overriddenDuration?: number;
    }
    Index

    Properties

    overriddenDuration?: number

    An overridden duration for the task function, to be used instead of the duration measured by tinybench when running the benchmark.

    This can be useful to measure parts of the execution of a function that are hard to execute independently.