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.
overriddenDuration
bench.opts.now()
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 usebench.opts.now()
to measure that duration.