tinybench
Advanced tools
Comparing version 2.0.7 to 2.0.8
@@ -170,3 +170,3 @@ var z = Object.defineProperty; | ||
let t = this.bench.now(), n = 0, e = []; | ||
for (; n < this.bench.time && this.runs < this.bench.iterations && !((o = this.bench.signal) != null && o.aborted); ) { | ||
for (; (n < this.bench.time || this.runs < this.bench.iterations) && !((o = this.bench.signal) != null && o.aborted); ) { | ||
let d = this.bench.now(); | ||
@@ -213,3 +213,3 @@ try { | ||
let t = this.bench.now(), n = 0; | ||
for (; n < this.bench.warmupTime && this.runs < this.bench.warmupIterations && !((e = this.bench.signal) != null && e.aborted); ) { | ||
for (; (n < this.bench.warmupTime || this.runs < this.bench.warmupIterations) && !((e = this.bench.signal) != null && e.aborted); ) { | ||
try { | ||
@@ -216,0 +216,0 @@ await Promise.resolve().then(this.fn); |
{ | ||
"name": "tinybench", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "packageManager": "pnpm@7.5.1", |
Sorry, the diff of this file is not supported yet
28818