Skip to content

Commit

Permalink
Fix typos in PerfCompare
Browse files Browse the repository at this point in the history
Fix typos in PerfCompare

Signed-off-by: LongyuZhang <[email protected]>
  • Loading branch information
LongyuZhang committed Oct 29, 2024
1 parent 219b749 commit 7d861ee
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ 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 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 (
Expand Down Expand Up @@ -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];
Expand Down

0 comments on commit 7d861ee

Please sign in to comment.