Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.

Commit ddc7ea4

Browse files
committed
Change max samples to 2**26
1 parent a9a83be commit ddc7ea4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function getTime(): bigint {
147147
}
148148
async function benchmarkRaw(samples: number | undefined, callback: Func): Promise<BenchStats> {
149149
if (samples == null) {
150-
samples = Number.POSITIVE_INFINITY;
150+
samples = 2 ** 26;
151151
} else if (!Number.isSafeInteger(samples) || samples <= 0) {
152152
throw new Error('samples must be a number');
153153
}

0 commit comments

Comments
 (0)