@best/compare
Advanced tools
Comparing version 7.0.1 to 8.0.0
@@ -7,3 +7,3 @@ "use strict"; | ||
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT | ||
*/ | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -18,4 +18,4 @@ exports.compareBenchmarkStats = void 0; | ||
if (baseResults && baseResults.length && targetResults && targetResults.length) { | ||
baseResults.forEach(baseResult => { | ||
const targetResult = targetResults.find(r => r.name === baseResult.name); | ||
baseResults.forEach((baseResult) => { | ||
const targetResult = targetResults.find((r) => r.name === baseResult.name); | ||
if (!targetResult) { | ||
@@ -25,15 +25,15 @@ console.log(`Skipping benchmark test ${baseResult.name} since we couldn't find it in target. The test has probably been changed between commits`); | ||
} | ||
if (baseResult.type === "group" && targetResult.type === "group") { | ||
if (baseResult.type === 'group' && targetResult.type === 'group') { | ||
const group = { | ||
type: "group", | ||
type: 'group', | ||
name: baseResult.name, | ||
comparisons: compareResults(baseResult.nodes, targetResult.nodes) | ||
comparisons: compareResults(baseResult.nodes, targetResult.nodes), | ||
}; | ||
comparison.push(group); | ||
} | ||
else if (baseResult.type === "benchmark" && targetResult.type === "benchmark") { | ||
else if (baseResult.type === 'benchmark' && targetResult.type === 'benchmark') { | ||
const benchmark = { | ||
type: "benchmark", | ||
type: 'benchmark', | ||
name: baseResult.name, | ||
metrics: {} | ||
metrics: {}, | ||
}; | ||
@@ -50,3 +50,3 @@ Object.keys(baseResult.metrics).forEach((metricName) => { | ||
targetStats, | ||
samplesComparison | ||
samplesComparison, | ||
}; | ||
@@ -69,3 +69,3 @@ } | ||
base: await storageProvider.getAllBenchmarkStatsPerCommit(name, baseCommit), | ||
target: await storageProvider.getAllBenchmarkStatsPerCommit(name, targetCommit) | ||
target: await storageProvider.getAllBenchmarkStatsPerCommit(name, targetCommit), | ||
}; | ||
@@ -78,3 +78,3 @@ })); | ||
}; | ||
projectStats.forEach(project => { | ||
projectStats.forEach((project) => { | ||
const allBaseStats = project.base; | ||
@@ -84,5 +84,5 @@ const allTargetStats = project.target; | ||
const comparisons = []; | ||
allBaseStats.forEach(baseStats => { | ||
allBaseStats.forEach((baseStats) => { | ||
const { benchmarkName } = baseStats; | ||
const targetStats = allTargetStats.find(s => s.benchmarkName === benchmarkName); | ||
const targetStats = allTargetStats.find((s) => s.benchmarkName === benchmarkName); | ||
if (!targetStats) { | ||
@@ -100,5 +100,5 @@ console.log(`Skipping benchmark ${benchmarkName} since we couldn't find it in commit ${targetCommit}`); | ||
const benchmark = { | ||
type: "group", | ||
type: 'group', | ||
name: benchmarkName, | ||
comparisons: comparison | ||
comparisons: comparison, | ||
}; | ||
@@ -108,5 +108,5 @@ comparisons.push(benchmark); | ||
const projectComparison = { | ||
type: "project", | ||
type: 'project', | ||
name: project.name, | ||
comparisons | ||
comparisons, | ||
}; | ||
@@ -113,0 +113,0 @@ commitComparison.comparisons.push(projectComparison); |
{ | ||
"dependencies": { | ||
"@best/analyzer": "7.0.1", | ||
"@best/analyzer": "8.0.0", | ||
"chalk": "~2.4.2" | ||
@@ -20,3 +20,3 @@ }, | ||
}, | ||
"version": "7.0.1" | ||
"version": "8.0.0" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5189
+ Added@best/analyzer@8.0.0(transitive)
- Removed@best/analyzer@7.0.1(transitive)
Updated@best/analyzer@8.0.0