Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@best/analyzer

Package Overview
Dependencies
Maintainers
0
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@best/analyzer - npm Package Compare versions

Comparing version 13.0.0 to 14.0.0

6

build/index.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc