diff options
Diffstat (limited to 'benchmark/common.js')
-rw-r--r-- | benchmark/common.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/common.js b/benchmark/common.js index 50c8e21244..fc47a3ce02 100644 --- a/benchmark/common.js +++ b/benchmark/common.js @@ -44,7 +44,7 @@ Benchmark.prototype._parseArgs = function(argv, configs) { for (const arg of argv) { const match = arg.match(/^(.+?)=([\s\S]*)$/); if (!match) { - console.error('bad argument: ' + arg); + console.error(`bad argument: ${arg}`); process.exit(1); } const config = match[1]; @@ -206,7 +206,7 @@ function formatResult(data) { // Construct configuration string, " A=a, B=b, ..." let conf = ''; for (const key of Object.keys(data.conf)) { - conf += ' ' + key + '=' + JSON.stringify(data.conf[key]); + conf += ` ${key}=${JSON.stringify(data.conf[key])}`; } var rate = data.rate.toString().split('.'); |