diff --git a/benchmark/data/plsql/create.sql b/benchmark/data/plsql/create.sql deleted file mode 100644 index e69de29b..00000000 diff --git a/benchmark/run.ts b/benchmark/run.ts index 0521358a..6992c34d 100644 --- a/benchmark/run.ts +++ b/benchmark/run.ts @@ -31,7 +31,6 @@ const testFiles: TestFile[] = [ sqlFileName: 'select.sql', loopTimes: 3, testTypes: ['validate', 'getAllTokens'], - excludes: ['plsql', 'postgresql'], }, { name: 'Select All Entities', @@ -45,7 +44,6 @@ const testFiles: TestFile[] = [ sqlFileName: 'create.sql', loopTimes: 3, testTypes: ['validate', 'getAllTokens'], - excludes: ['plsql', 'postgresql'], }, ]; diff --git a/benchmark/sqlBenchmark.ts b/benchmark/sqlBenchmark.ts index 3ef39e41..f31eff64 100644 --- a/benchmark/sqlBenchmark.ts +++ b/benchmark/sqlBenchmark.ts @@ -208,6 +208,11 @@ class SqlBenchmark { ); const currentVersion = require('../package.json').version; const parsedEnvInfo = JSON.parse(envInfo); + + if (!fs.existsSync(path.join(__dirname, `./reports`))) { + fs.mkdirSync(path.join(__dirname, `./reports`), { recursive: true }); + } + const writePath = path.join(__dirname, `./reports/${this.language}.benchmark.md`); const writter = new MarkdownWritter(writePath); writter.writeHeader('Benchmark', 2);