From ac42d808f89660dfdfd5f1bc5fbe2c9b7a346a26 Mon Sep 17 00:00:00 2001 From: LongyuZhang Date: Mon, 28 Oct 2024 22:36:25 -0400 Subject: [PATCH 1/2] Fix separate in Perf Fix separate in PerfCompare Signed-off-by: LongyuZhang --- .../src/PerfCompare/lib/PerffarmRunJSON.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test-result-summary-client/src/PerfCompare/lib/PerffarmRunJSON.js b/test-result-summary-client/src/PerfCompare/lib/PerffarmRunJSON.js index 07eaa8d7..45549ca8 100644 --- a/test-result-summary-client/src/PerfCompare/lib/PerffarmRunJSON.js +++ b/test-result-summary-client/src/PerfCompare/lib/PerffarmRunJSON.js @@ -15,13 +15,13 @@ export default class PerffarmRunJSON { // Find the indexes of the variant seperators for (let j = 0; j < this.parsedCSV.length; j++) { - // Each variant is seperated by a 1 element array + // Each variant is separated by a 1 element array if (this.parsedCSV[j].length === 1) { variantIndex.push(j); - // The excel file is seperated into two portions, the upper showing the detailed + // The excel file is separated into two portions, the upper showing the detailed // benchmark results (which is needed) and the bottom showing a comparison if any. - // The seperation point is either: + // The separation point is either: // two back to back arrays with length 1 OR // an array of length 1 followed by an array of length 2 if ( From a9f4e93a9543f788db87faa08860a669205a41c2 Mon Sep 17 00:00:00 2001 From: LongyuZhang Date: Tue, 29 Oct 2024 10:36:00 -0400 Subject: [PATCH 2/2] Fix separator in Perf Fix separator in Perf Signed-off-by: LongyuZhang --- .../src/PerfCompare/lib/PerffarmRunJSON.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test-result-summary-client/src/PerfCompare/lib/PerffarmRunJSON.js b/test-result-summary-client/src/PerfCompare/lib/PerffarmRunJSON.js index 45549ca8..d554f3c9 100644 --- a/test-result-summary-client/src/PerfCompare/lib/PerffarmRunJSON.js +++ b/test-result-summary-client/src/PerfCompare/lib/PerffarmRunJSON.js @@ -13,7 +13,7 @@ export default class PerffarmRunJSON { let indexOfMean = null; let indexOfCI = null; - // Find the indexes of the variant seperators + // Find the indexes of the variant separators for (let j = 0; j < this.parsedCSV.length; j++) { // Each variant is separated by a 1 element array if (this.parsedCSV[j].length === 1) { @@ -133,11 +133,11 @@ export default class PerffarmRunJSON { curMetricObject = { value: {} }; curMetricObject['name'] = this.parsedCSV[variantIndex[k] + 1][m]; - // Mean is always 6 indices above the next variant seperator + // Mean is always 6 indices above the next variant separator curMetricObject['value']['mean'] = this.parsedCSV[indexOfMean][m]; - // Confidence Interval is always 4 indices above the next variant seperator + // Confidence Interval is always 4 indices above the next variant separator try { curMetricObject['value']['CI'] = this.parsedCSV[indexOfCI][m];