ReadonlynameThe task name
The result object
The number of times the task function has been executed
Optionaloptions: boolean | AddEventListenerOptionsOptionaloptions: boolean | EventListenerOptionsInternalreset the task to make the Task.runs a zero-value and remove the Task.result object property
Internalrun the current task and write the results in Task.result object property
the current task
Internalrun the current task and write the results in Task.result object property (sync version)
the current task
Internalwarmup the current task
Internalwarmup 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, ...