Skip to content

Commit

Permalink
fix: await the this.bench.setup call during warmup (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
HlustikP committed Apr 12, 2023
1 parent 2cc3aad commit cafe0f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export default class Task extends EventTarget {
const startTime = this.bench.now();
let totalTime = 0;

this.bench.setup(this, 'warmup');
await this.bench.setup(this, 'warmup');
while (
(totalTime < this.bench.warmupTime
|| this.runs < this.bench.warmupIterations)
Expand Down

0 comments on commit cafe0f9

Please sign in to comment.