Readonly
suitesThe SuiteLikes in this (Benchmark:class).
Add a SuiteLike to this (Benchmark:class).
this
Add a SuiteLike to this (Benchmark:class) by loading it in a separate thread via its filepath.
A (Suite:class) with a filepath provided
this
Run all (Suite:class)s for this (Benchmark:class).
Optional
abortSignal: AbortSignalAn optional AbortSignal
that can be used to cancel the running suites
Optional
options: Benchmark.RunOptionsA (Benchmark:namespace).Results Map
const results = await benchmark.runSuites();
Using an AbortSignal
to cancel the benchmark:
const ac = new AbortController();
const signal = ac.signal;
benchmark
.runSuites(signal)
.then(console.log)
.catch(error => {
if (error.name === 'AbortError') {
console.log('The benchmark was aborted');
}
});
ac.abort();
A benchmark which has many SuiteLikes.
Example