summaryrefslogtreecommitdiff
path: root/benchmark/_benchmark_progress.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/_benchmark_progress.js')
-rw-r--r--benchmark/_benchmark_progress.js15
1 files changed, 7 insertions, 8 deletions
diff --git a/benchmark/_benchmark_progress.js b/benchmark/_benchmark_progress.js
index 5e2ae4ab11..0c5cc10bf8 100644
--- a/benchmark/_benchmark_progress.js
+++ b/benchmark/_benchmark_progress.js
@@ -87,8 +87,8 @@ class BenchmarkProgress {
const runsPerFile = this.runsPerFile;
const completedFiles = Math.floor(completedRuns / runsPerFile);
const scheduledFiles = this.benchmarks.length;
- const completedRunsForFile = finished ? runsPerFile :
- completedRuns % runsPerFile;
+ const completedRunsForFile =
+ finished ? runsPerFile : completedRuns % runsPerFile;
const completedConfig = this.completedConfig;
const scheduledConfig = this.scheduledConfig;
@@ -101,12 +101,11 @@ class BenchmarkProgress {
const percent = pad(Math.floor(completedRate * 100), 3, ' ');
const caption = finished ? 'Done\n' : this.currentFile;
- return `[${getTime(diff)}|% ${
- percent}| ${
- fraction(completedFiles, scheduledFiles)} files | ${
- fraction(completedRunsForFile, runsPerFile)} runs | ${
- fraction(completedConfig, scheduledConfig)} configs]: ${
- caption} `;
+ return `[${getTime(diff)}|% ${percent}| ` +
+ `${fraction(completedFiles, scheduledFiles)} files | ` +
+ `${fraction(completedRunsForFile, runsPerFile)} runs | ` +
+ `${fraction(completedConfig, scheduledConfig)} configs]: ` +
+ `${caption} `;
}
updateProgress(finished) {