Skip to content

Commit

Permalink
fix(benchmark.js-plugin): avoid awaiting unecessarly sync benches
Browse files Browse the repository at this point in the history
  • Loading branch information
art049 committed Mar 27, 2023
1 parent aa95fd1 commit 8fb7eb4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/benchmark.js-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@ async function runBenchmarks({
for (let i = 0; i < benches.length; i++) {
const bench = benches[i];
const uri = baseUri + "::" + (bench.name ?? `unknown_${i}`);
const isAsync =
bench.options.async || bench.options.defer || options?.async;
const isAsync = bench.options.async || bench.options.defer;
let benchPayload;
if (bench.options.defer) {
benchPayload = () => {
Expand Down

0 comments on commit 8fb7eb4

Please sign in to comment.