Readonly
nameThe task name
The result object
The number of times the task function has been executed
Optional
options: boolean | AddEventListenerOptionsOptional
options: boolean | EventListenerOptionsInternal
reset the task to make the Task.runs
a zero-value and remove the Task.result
object property
Internal
run the current task and write the results in Task.result
object property
the current task
Internal
run the current task and write the results in Task.result
object property (sync version)
the current task
Internal
warmup the current task
Internal
warmup the current task (sync version)
A class that represents each benchmark task in Tinybench. It keeps track of the results, name, the task function, the number times the task function has been executed, ...