Executes tasks concurrently based on the specified concurrency mode.
mode is set to null (default), concurrency is disabled.mode is set to 'task', each task's iterations (calls of a task function) run concurrently.mode is set to 'bench', different tasks within the bench run concurrently.Optional ReadonlynameThe benchmark name.
ReadonlyoptsThe options.
ReadonlyruntimeThe JavaScript runtime environment.
ReadonlyruntimeThe JavaScript runtime version.
The maximum number of concurrent tasks to run
Optionaloptions: boolean | AddEventListenerOptionsget a task based on the task name
the task name
the Task instance
remove a benchmark task from the task map
the task name
the Bench instance
Optionaloptions: boolean | EventListenerOptionsreset tasks and remove their result
table of the tasks results
Optionalconvert: (task: Task) => Record<string, number | string | undefined>an optional callback to convert the task result to a table record
the tasks results as an array of table records
The Bench class keeps track of the benchmark tasks and controls them.