From 3204d9d7c9015db856ff29225f1a949e47b05072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Breitbart?= Date: Sun, 9 Jun 2019 15:19:48 +0200 Subject: [PATCH] fix benchmark script --- benchmark-tests/tsconfig.json | 5 ++--- bin/benchmark.js | 10 ++++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/benchmark-tests/tsconfig.json b/benchmark-tests/tsconfig.json index 02079d2b..9012ee4d 100644 --- a/benchmark-tests/tsconfig.json +++ b/benchmark-tests/tsconfig.json @@ -17,11 +17,10 @@ "paths": { "common/*": [ "./../out/common/*" ], "browser/*": [ "./../out/browser/*" ] - }, - "declaration": true + } }, "include": [ "./**/*", "../typings/xterm.d.ts" - ] + ], } diff --git a/bin/benchmark.js b/bin/benchmark.js index 894d98db..077febe4 100644 --- a/bin/benchmark.js +++ b/bin/benchmark.js @@ -18,13 +18,13 @@ env.NODE_PATH = path.resolve(__dirname, '../out'); * yarn benchmark eval 10 runs of all benchmarks with eval against last baseline */ const commands = { - single : '-c benchmark.json', - baseline: '--baseline -r 5 -c benchmark.json', - eval : '--eval -r 5 -c benchmark.json' + single : '-r 5 -c ./benchmark-tests/benchmark.json', + baseline: '--baseline -r 5 -c ./benchmark-tests/benchmark.json', + eval : '--eval -r 5 -c ./benchmark-tests/benchmark.json' } let testFiles = [ - './out/**/*benchmark.js' + './benchmark/*benchmark.js' ]; // allow overriding cmdline args (see yarn benchmark --help) @@ -32,6 +32,8 @@ if (process.argv.length === 3 && process.argv[2] in commands) { testFiles.push(commands[process.argv[2]]); } else if (process.argv.length > 2) { testFiles = process.argv.slice(2); +} else if (process.argv.length === 2) { + testFiles.push(commands['single']); } cp.spawnSync(