@best/analyzer
Advanced tools
Comparing version 13.0.0 to 14.0.0
@@ -9,3 +9,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.computeSampleStats = exports.compareSamples = exports.analyzeBenchmarks = void 0; | ||
exports.compareSamples = void 0; | ||
exports.analyzeBenchmarks = analyzeBenchmarks; | ||
exports.computeSampleStats = computeSampleStats; | ||
const constants_1 = require("./constants"); | ||
@@ -29,3 +31,2 @@ const stats_1 = require("./stats"); | ||
} | ||
exports.computeSampleStats = computeSampleStats; | ||
// Given an iteration benchmark (whith nested benchmarks), collect its metrics | ||
@@ -108,3 +109,2 @@ function collectResults(resultNode, collector, projectConfig) { | ||
} | ||
exports.analyzeBenchmarks = analyzeBenchmarks; | ||
//# sourceMappingURL=index.js.map |
@@ -9,7 +9,13 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.compare = exports.formatNumber = exports.medianAbsoluteDeviation = exports.median = exports.variance = exports.mean = exports.quantile = exports.sort = void 0; | ||
exports.sort = sort; | ||
exports.quantile = quantile; | ||
exports.mean = mean; | ||
exports.variance = variance; | ||
exports.median = median; | ||
exports.medianAbsoluteDeviation = medianAbsoluteDeviation; | ||
exports.formatNumber = formatNumber; | ||
exports.compare = compare; | ||
function sort(arr) { | ||
return [...arr].sort((a, b) => a - b); | ||
} | ||
exports.sort = sort; | ||
function quantile(arr, p) { | ||
@@ -20,7 +26,5 @@ const sorted = sort(arr); | ||
} | ||
exports.quantile = quantile; | ||
function mean(arr) { | ||
return arr.reduce((acc, v) => acc + v, 0) / arr.length; | ||
} | ||
exports.mean = mean; | ||
function variance(arr) { | ||
@@ -30,3 +34,2 @@ const avg = mean(arr); | ||
} | ||
exports.variance = variance; | ||
function median(arr) { | ||
@@ -40,3 +43,2 @@ if (!arr.length) { | ||
} | ||
exports.median = median; | ||
function medianAbsoluteDeviation(arr) { | ||
@@ -51,3 +53,2 @@ const med = median(arr); | ||
} | ||
exports.medianAbsoluteDeviation = medianAbsoluteDeviation; | ||
function formatNumber(num) { | ||
@@ -59,3 +60,2 @@ if (typeof num != 'number') { | ||
} | ||
exports.formatNumber = formatNumber; | ||
// From https://github.com/bestiejs/benchmark.js/blob/master/benchmark.js#L1391 | ||
@@ -87,3 +87,2 @@ function compare(sample1, sample2) { | ||
} | ||
exports.compare = compare; | ||
//# sourceMappingURL=stats.js.map |
@@ -17,3 +17,3 @@ { | ||
"types": "build/index.d.ts", | ||
"version": "13.0.0" | ||
"version": "14.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
7742
196