The async function to benchmark.
Optionaloptions: BenchmarkOptions<T>Configuration options for the benchmark.
A Promise resolving to the result of the final iteration.
Benchmarks a synchronous function, measuring execution time and the byte size of its result.
Use iterations to average results across multiple runs, reducing noise from JIT warm-up
and GC pauses. Set log: true for a console summary or supply BenchmarkOptions.onBenchmarkComplete
for programmatic access to the BenchmarkInfo.
The synchronous function to benchmark.
Optionaloptions: BenchmarkOptions<T>Configuration options for the benchmark.
The result of the final iteration.
Benchmarks an async function, measuring execution time and the byte size of its result.
Use
iterationsto average results across multiple runs, reducing noise from JIT warm-up and GC pauses. Setlog: truefor a console summary or supply BenchmarkOptions.onBenchmarkComplete for programmatic access to the BenchmarkInfo.