-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathinterfaces.ts
More file actions
44 lines (40 loc) · 862 Bytes
/
interfaces.ts
File metadata and controls
44 lines (40 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
export interface BenchmarkStats {
min_ns: number;
max_ns: number;
mean_ns: number;
stdev_ns: number;
q1_ns: number;
median_ns: number;
q3_ns: number;
rounds: number;
total_time: number;
iqr_outlier_rounds: number;
stdev_outlier_rounds: number;
iter_per_round: number;
warmup_iters: number;
}
export interface BenchmarkConfig {
warmup_time_ns: number | null;
min_round_time_ns: number | null;
max_time_ns?: number | null;
max_rounds?: number | null;
}
export interface Benchmark {
name: string;
uri: string;
config: BenchmarkConfig;
stats: BenchmarkStats;
}
export interface InstrumentInfo {
type: string;
}
export interface ResultData {
creator: {
name: string;
version: string;
pid: number;
};
instrument: { type: "walltime" };
benchmarks: Benchmark[];
metadata?: Record<string, unknown>;
}