Socket
Socket
Sign inDemoInstall

@definitelytyped/perf

Package Overview
Dependencies
Maintainers
7
Versions
506
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@definitelytyped/perf - npm Package Compare versions

Comparing version 0.0.158-next.2 to 0.0.158-next.4

6

dist/analysis/metrics.d.ts

@@ -13,4 +13,4 @@ import { PackageBenchmarkSummary } from "../common";

}
export declare type GetSignificance = (percentDiff: number, beforeValue: number, afterValue: number, beforeDoc: PackageBenchmarkSummary, afterDoc: PackageBenchmarkSummary) => SignificanceLevel | undefined;
export declare type CreateGetSignificance = (getSignificance: GetSignificance) => GetSignificance;
export type GetSignificance = (percentDiff: number, beforeValue: number, afterValue: number, beforeDoc: PackageBenchmarkSummary, afterDoc: PackageBenchmarkSummary) => SignificanceLevel | undefined;
export type CreateGetSignificance = (getSignificance: GetSignificance) => GetSignificance;
export interface Metric {

@@ -23,3 +23,3 @@ columnName: string;

}
export declare type MetricName = "typeCount" | "memoryUsage" | "assignabilityCacheSize" | "samplesTaken" | "identifierCount" | "completionsMean" | "completionsStdDev" | "completionsAvgCV" | "quickInfoMean" | "quickInfoStdDev" | "quickInfoAvgCV" | "completionsWorstMean" | "quickInfoWorstMean";
export type MetricName = "typeCount" | "memoryUsage" | "assignabilityCacheSize" | "samplesTaken" | "identifierCount" | "completionsMean" | "completionsStdDev" | "completionsAvgCV" | "quickInfoMean" | "quickInfoStdDev" | "quickInfoAvgCV" | "completionsWorstMean" | "quickInfoWorstMean";
export declare const metrics: {

@@ -26,0 +26,0 @@ [K in MetricName]: Metric;

import { PackageBenchmarkSummary } from "../common";
declare type BeforeAndAfter = [PackageBenchmarkSummary, PackageBenchmarkSummary];
type BeforeAndAfter = [PackageBenchmarkSummary, PackageBenchmarkSummary];
export declare enum OverallChange {

@@ -4,0 +4,0 @@ Same = 0,

@@ -72,3 +72,3 @@ /// <reference types="node" />

}
export declare type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
export type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
export interface SystemInfo {

@@ -75,0 +75,0 @@ cpus: Omit<CpuInfo, "times">[];

import { PackageBenchmarkSummary } from "../common";
declare type BeforeAndAfter = [PackageBenchmarkSummary, PackageBenchmarkSummary];
type BeforeAndAfter = [PackageBenchmarkSummary, PackageBenchmarkSummary];
export interface PostDependentsComparisonResultOptions {

@@ -4,0 +4,0 @@ comparisons: BeforeAndAfter[];

import { PackageBenchmarkSummary } from "../common";
declare type BeforeAndAfter = [PackageBenchmarkSummary, PackageBenchmarkSummary];
type BeforeAndAfter = [PackageBenchmarkSummary, PackageBenchmarkSummary];
export interface PostInitialComparisonResultsOptions {

@@ -4,0 +4,0 @@ comparisons: BeforeAndAfter[];

@@ -47,3 +47,3 @@ "use strict";

return {
ts: await Promise.resolve().then(() => __importStar(require(tsPath))),
ts: await Promise.resolve(`${tsPath}`).then(s => __importStar(require(s))),
tsPath,

@@ -50,0 +50,0 @@ };

@@ -9,2 +9,2 @@ import { CompilerOptions } from "typescript";

}
export declare type MeasureBatchCompilationChildProcessResult = Pick<PackageBenchmark, "typeCount" | "relationCacheSizes" | "memoryUsage">;
export type MeasureBatchCompilationChildProcessResult = Pick<PackageBenchmark, "typeCount" | "relationCacheSizes" | "memoryUsage">;

@@ -34,3 +34,3 @@ "use strict";

process.on("message", async ([message]) => {
const ts = await Promise.resolve().then(() => __importStar(require(message.tsPath)));
const ts = await Promise.resolve(`${message.tsPath}`).then(s => __importStar(require(s)));
const program = ts.createProgram({ rootNames: message.fileNames, options: message.options });

@@ -37,0 +37,0 @@ const diagnostics = program.getSemanticDiagnostics().filter((diagnostic) => {

@@ -46,3 +46,3 @@ "use strict";

if (!ts || !commandLine || !languageServiceHost || !languageService) {
ts = (await Promise.resolve().then(() => __importStar(require(message.tsPath))));
ts = (await Promise.resolve(`${message.tsPath}`).then(s => __importStar(require(s))));
commandLine = (0, getParsedCommandLineForPackage_1.getParsedCommandLineForPackage)(ts, message.packageDirectory);

@@ -49,0 +49,0 @@ languageServiceHost = (0, createLanguageServiceHost_1.createLanguageServiceHost)(ts, commandLine.options, commandLine.fileNames);

{
"name": "@definitelytyped/perf",
"version": "0.0.158-next.2",
"version": "0.0.158-next.4",
"description": "",

@@ -27,3 +27,3 @@ "bin": "index.js",

"semver": "^7.3.7",
"typescript": "^4.1.0",
"typescript": "^5.0.2",
"yargs": "^15.4.1"

@@ -37,3 +37,3 @@ },

},
"gitHead": "f02f34cadd522fe84bd7be70a3945ac2d3bf7c0a"
"gitHead": "e4c9437b79c4b229e0b9774f42c399472995d315"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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