From d0fc67a85663fc524ee802b713afd89875496f36 Mon Sep 17 00:00:00 2001 From: Connor Burton Date: Sun, 14 May 2023 17:29:45 +0100 Subject: [PATCH] perf: improve rome benchmark performance in formatting by removing diagnostics --- benchmark/run.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/run.js b/benchmark/run.js index ff5da16f045..daf2deee1bf 100644 --- a/benchmark/run.js +++ b/benchmark/run.js @@ -80,7 +80,7 @@ function benchmarkFormatter(rome) { const dprintCommand = `${resolveDprint()} fmt --incremental=false --config '${require.resolve("./dprint.json")}' ${Object.keys(configuration.sourceDirectories).map(path => `'${path}/**/*'`).join(" ")}`; - const romeCommand = `${rome} format ${Object.keys( + const romeCommand = `${rome} format --max-diagnostics=0 ${Object.keys( configuration.sourceDirectories, ) .map((path) => `'${path}'`)