@dapplion/benchmark
Version:
Ensures that new code does not introduce performance regressions with CI. Tracks:
20 lines • 845 B
TypeScript
import { Benchmark, Opts } from "../types.js";
import { IHistoryProvider } from "../history/provider.js";
declare enum CompareWithType {
latestCommitInBranch = "latestCommitInBranch",
exactCommit = "exactCommit"
}
export type CompareWith = {
type: CompareWithType.latestCommitInBranch;
branch: string;
before?: string;
} | {
type: CompareWithType.exactCommit;
commitSha: string;
};
export declare function resolveCompare(provider: IHistoryProvider, opts: Opts): Promise<Benchmark | null>;
export declare function resolvePrevBenchmark(compareWith: CompareWith, provider: IHistoryProvider): Promise<Benchmark | null>;
export declare function renderCompareWith(compareWith: CompareWith): string;
export declare function resolveCompareWith(opts: Opts): Promise<CompareWith>;
export {};
//# sourceMappingURL=index.d.ts.map