Skip to content

Commit 8fb7eb4

Browse files
committed
fix(benchmark.js-plugin): avoid awaiting unecessarly sync benches
1 parent aa95fd1 commit 8fb7eb4

File tree

1 file changed

+1
-2
lines changed
  • packages/benchmark.js-plugin/src

1 file changed

+1
-2
lines changed

packages/benchmark.js-plugin/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ async function runBenchmarks({
162162
for (let i = 0; i < benches.length; i++) {
163163
const bench = benches[i];
164164
const uri = baseUri + "::" + (bench.name ?? `unknown_${i}`);
165-
const isAsync =
166-
bench.options.async || bench.options.defer || options?.async;
165+
const isAsync = bench.options.async || bench.options.defer;
167166
let benchPayload;
168167
if (bench.options.defer) {
169168
benchPayload = () => {

0 commit comments

Comments
 (0)