@paulmillr/jsbt
Version:
JS Build Tools: build, benchmark, test libs and apps
26 lines (25 loc) • 848 B
TypeScript
export type CompareOpts = {
libDims?: string[];
defaults?: Record<string, any>;
dims?: string[];
filter?: string | string[];
filterObj?: (obj: Record<string, any>) => boolean;
jsonOnly?: boolean;
dryRun?: boolean;
patchArgs?: (args: any[], obj: Record<string, any>) => any[];
samples?: number | ((...args: any[], lib: any) => number);
compact?: boolean;
metrics?: Record<string, {
unit?: string;
rev?: boolean;
width?: number;
diff?: boolean;
compute: (obj: Record<string, any>, stats: any, perSec: bigint, ...args: any[]) => number;
}>;
prevFile?: string;
printUnchanged?: boolean;
skipThreshold?: number;
};
declare function compare(title: string, dimensions: any, libs: any, opts: CompareOpts): void;
export default compare;
export { compare };