Adds a listener for the specified event type.
Executes tasks concurrently based on the specified concurrency mode, if set.
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.The amount of executions per task.
A function to get a timestamp.
Removes a previously registered event listener.
The JavaScript runtime environment.
The JavaScript runtime version.
A setup function that runs before each task execution.
OptionalsignalAn AbortSignal to cancel the benchmark
A teardown function that runs after each task execution.
The maximum number of concurrent tasks to run
Whether to throw an error if a task function throws
The amount of time to run each task.
Whether to warmup the tasks before running them
The amount of warmup iterations per task.
The amount of time to warmup each task.
Used to decouple Bench and Task