UNPKG

@eagleoutice/flowr

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

38 lines (37 loc) 1.23 kB
interface BenchmarkData { readonly lastUpdate: number; readonly repoUrl: string; readonly entries: Record<string, [BenchmarkElement]>; } interface BenchmarkElement { readonly commit: Record<string, unknown>; readonly date: number; readonly tool: string; readonly benches: BenchmarkElementBench[]; } interface BenchmarkElementBench { readonly name: string; readonly value: number; readonly unit: string; readonly range: number; readonly extra: string; } /** * Loads the benchmark data from the predefined path. * This is the location which is used by the CI to store benchmark results. */ export declare function loadBenchmarkData(): Promise<BenchmarkData>; /** * Returns the latest benchmark for the given suite. */ export declare function getLatestBenchmark(suite: string): Promise<BenchmarkElement>; /** * Returns the timestamp of the last benchmark update. * We can use this to find out when the last (recorded) benchmark run was. */ export declare function getLastBenchmarkUpdate(): Promise<number>; /** * Get the total time taken for dataflow analysis in the given suite. */ export declare function getLatestDfAnalysisTime(suite: string): Promise<number>; export {};