OptionalconcurrencyExecutes 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.Optionaliterationsnumber of times that a task should run if even the time option is finished
Optionalnamebenchmark name
Optionalnowfunction to get the current timestamp in milliseconds
Optionalsetupsetup function to run before each benchmark task (cycle)
OptionalsignalAn AbortSignal for aborting the benchmark
Optionalteardownteardown function to run after each benchmark task (cycle)
OptionalthresholdThe maximum number of concurrent tasks to run
OptionalthrowsThrows if a task fails
Optionaltimetime needed for running a benchmark task (milliseconds)
Optionalwarmupwarmup benchmark
Optionalwarmupwarmup iterations
Optionalwarmupwarmup time (milliseconds)
Bench options