The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
The name of the task.
The task name as a string
The result of the task.
The task result including state, statistics, and runtime information
The number of times the task function has been executed.
The total number of executions performed
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
Resets the task to make the Task.runs a zero-value and remove the Task.result object property.
whether to emit the reset event or not
Runs the current task and writes the results in Task.result object property.
the current task
Runs the current task synchronously and writes the results in Task.result object property.
the current task
Warms up the current task.
Warms up the current task synchronously.
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, ...