summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--benching/mod.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/benching/mod.ts b/benching/mod.ts
index 61df5c06b..4d2f5d41e 100644
--- a/benching/mod.ts
+++ b/benching/mod.ts
@@ -91,9 +91,9 @@ export function bench(
/** Runs all registered and non-skipped benchmarks serially. */
export async function runBenchmarks({
- only = /[^\s]+/,
+ only = /[^\s]/,
skip = /^\s*$/
-}: BenchmarkRunOptions): Promise<void> {
+}: BenchmarkRunOptions = {}): Promise<void> {
// Filtering candidates by the "only" and "skip" constraint
const benchmarks: Array<BenchmarkDefinition> = candidates.filter(
({ name }) => only.test(name) && !skip.test(name)